dim: shellcheck fixes
cover dim: shellcheck fixes
Thou shalt not push dim patches before passing 'make check'.
Jani Nikula (4):
dim: Fix shellcheck SC1083
dim: Fix shellcheck SC2162 and SC2166
dim: Fix shellcheck SC2153
dim: Fix shellcheck SC2053
dim | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)
Signature · 6 lines
2.11.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/4 dim: Fix shellcheck SC1083
--- dim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dim +1 -1
@@ -707,7 +707,7 @@ function dim_push_branch committer_email=$(git_committer_email) - for sha1 in $(git rev-list $branch@{u}..$branch --committer="$committer_email" --no-merges) ; do + for sha1 in $(git rev-list "$branch@{u}..$branch" --committer="$committer_email" --no-merges) ; do checkpatch_commit_push $sha1 done
Signature · 6 lines
2.11.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/4 dim: Fix shellcheck SC2162 and SC2166
In reply to Jani Nikula--- dim | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
dim +6 -4
@@ -1959,7 +1959,9 @@ function dim_fixes function dim_add_missing_cc { - git show | scripts/get_maintainer.pl --email --norolestats --pattern-depth 1 | while read cc; do + local email name matches + + git show | scripts/get_maintainer.pl --email --norolestats --pattern-depth 1 | while read -r cc; do email="$(echo "$cc" | sed -e 's/.*<//' -e 's/>.*//')" name=''
@@ -1968,15 +1970,15 @@ function dim_add_missing_cc fi # Don't add main mailing lists - if [ "$email" = "[email protected]" -o \ - "$email" = "[email protected]}" ]; then + if [[ "$email" = "[email protected]" || \ + "$email" = "[email protected]}" ]]; then continue fi # Variables from the while loop don't propagate, # print out a 1 on success matches=$( - git show -s | grep -i "^ Cc:" | sed 's/^ *[Cc][Cc]: *//' | while read testcc; do + git show -s | grep -i "^ Cc:" | sed 's/^ *[Cc][Cc]: *//' | while read -r testcc; do testemail="$(echo "$testcc" | sed -e 's/.*<//' -e 's/>.*//')" if [ "$testemail" != "$email" ]; then
Signature · 6 lines
2.11.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/4 dim: Fix shellcheck SC2153
In reply to Jani NikulaThe fix is a bit artificial, but mute the warning.
--- dim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dim +1 -1
@@ -350,7 +350,7 @@ function git_branch_exists # branch function git_committer_email { if ! committer_email=$(git config --get user.email) ; then - committer_email=$EMAIL + committer_email=${EMAIL-} fi echo $committer_email
Signature · 6 lines
2.11.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 4/4 dim: Fix shellcheck SC2053
In reply to Jani Nikula--- dim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
dim +1 -1
@@ -685,7 +685,7 @@ function checkpatch_commit_push fi # check for committer != author - if [[ $committer != $author ]]; then + if [[ "$committer" != "$author" ]]; then return fi
Signature · 6 lines
2.11.0 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 1 line · Jani Nikula
Thou shalt not push dim patches before passing 'make check'.
On the series:
Quoted 18 lines
Cc Daniel Vetter <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Benjamin Gaignard <[email protected]>Jani Nikula (4):
dim: Fix shellcheck SC1083
dim: Fix shellcheck SC2162 and SC2166
dim: Fix shellcheck SC2153
dim: Fix shellcheck SC2053dim | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)Signature · 1 line
2.11.0
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 6 lines · Daniel Vetter
Quoted 1 line · Jani Nikula
Thou shalt not push dim patches before passing 'make check'.
On the series:
Reviewed-by Daniel Vetter <[email protected]>
Thanks, pushed.
BR,
Jani.
Quoted 19 lines
Quoted 19 lines
Cc Daniel Vetter <[email protected]>Cc Maarten Lankhorst <[email protected]>Cc Benjamin Gaignard <[email protected]>Jani Nikula (4):
dim: Fix shellcheck SC1083
dim: Fix shellcheck SC2162 and SC2166
dim: Fix shellcheck SC2153
dim: Fix shellcheck SC2053dim | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)Signature · 1 line
2.11.0
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx