From: Stephen Rothwell Date: Wed, 23 Jan 2019 21:44:12 +0000 (+1100) Subject: check_fixes: get rid of the last shellcheck warning X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;ds=sidebyside;h=3b4f982c72316c4e407f5e2de8b23de8c7ce70f4;p=next-scripts check_fixes: get rid of the last shellcheck warning --- diff --git a/check_fixes b/check_fixes index 0bd89e6..14541b2 100755 --- a/check_fixes +++ b/check_fixes @@ -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