]> git.ozlabs.org Git - next-scripts/commitdiff
check_fixes: get rid of the last shellcheck warning
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 23 Jan 2019 21:44:12 +0000 (08:44 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 23 Jan 2019 21:44:12 +0000 (08:44 +1100)
check_fixes

index 0bd89e6506a1b2bc8308dceb20f14a0da8800768..14541b28ef9003a4bca214117ce7e4efb2f29975 100755 (executable)
@@ -35,7 +35,8 @@ for c in $commits; do
                        grep -i '^[[:space:]]*Fixes:')
 
        while read -r fline; do
-               f=$(echo "$fline" | sed 's/^[[:space:]]*Fixes:[[:space:]]*//i')
+               [[ "$fline" =~ ^[[:space:]]*[Ff][Ii][Xx][Ee][Ss]:[[:space:]]*(.*)$ ]]
+               f="${BASH_REMATCH[1]}"
                fixes_msg="Fixes tag
 
   $fline