]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
Rewrap some bash
authorStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:32:27 +0000 (17:32 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 16:34:40 +0000 (17:34 +0100)
Keep bashate happy.

Signed-off-by: Stephen Finucane <stephen@that.guru>
tools/post-receive.hook

index 67f234b02c7f7295fb14d07062570621c5ed6b68..880c0625a00631822f30af91bc946df610930379 100755 (executable)
@@ -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