From a60ff5dc22d4aca9fdba000c9c928f4ae38adae4 Mon Sep 17 00:00:00 2001 From: thdox Date: Sun, 8 Feb 2015 16:31:26 +0100 Subject: SC2069 The order of the 2>&1 and the redirect matters. The 2>&1 has to be last. http://www.shellcheck.net/ [ci skip] --- tools/prepare-commit-msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/prepare-commit-msg') diff --git a/tools/prepare-commit-msg b/tools/prepare-commit-msg index e8150dd1..5045fe7a 100755 --- a/tools/prepare-commit-msg +++ b/tools/prepare-commit-msg @@ -11,7 +11,7 @@ add_ci_skip () source="$1" # Don't add [ci skip] if it's already in the commit message source - grep '\[ci skip\]' "$source" 2>&1 >/dev/null + grep '\[ci skip\]' "$source" >/dev/null 2>&1 [ $? -eq 0 ] && return if [ $(git diff --cached --name-only | grep --count "$pattern") -eq 0 ]; then -- cgit v1.2.3