From 3b4f982c72316c4e407f5e2de8b23de8c7ce70f4 Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Thu, 24 Jan 2019 08:44:12 +1100 Subject: [PATCH] check_fixes: get rid of the last shellcheck warning --- check_fixes | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5