From: Stephen Finucane Date: Tue, 1 Aug 2023 16:32:27 +0000 (+0100) Subject: Rewrap some bash X-Git-Tag: v3.2.0~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9609a26a3096f9355ddf1ab8f6b77af776d62de6;p=thirdparty%2Fpatchwork.git Rewrap some bash Keep bashate happy. Signed-off-by: Stephen Finucane --- diff --git a/tools/post-receive.hook b/tools/post-receive.hook index 67f234b0..880c0625 100755 --- a/tools/post-receive.hook +++ b/tools/post-receive.hook @@ -31,7 +31,7 @@ get_patchwork_hash() { get_patch_id() { local id id=$(pwclient info -h "$1" 2>/dev/null | \ - sed -rne 's,- id[[:space:]]*: ,,p') + sed -rne 's,- id[[:space:]]*: ,,p') echo "$id" test -n "$id" } @@ -42,8 +42,8 @@ set_patch_state() { update_patches() { local cnt; cnt=0 - for rev in $(git rev-parse --not ${EXCLUDE} | - git rev-list --stdin --no-merges --reverse "${1}".."${2}"); do + local revs; revs=$(git rev-parse --not ${EXCLUDE} | git rev-list --stdin --no-merges --reverse "${1}".."${2}") + for rev in $revs; do if [ "$do_exit" = 1 ]; then echo "I: exiting..." >&2 break