summaryrefslogtreecommitdiff
path: root/tools/prepare-commit-msg
diff options
context:
space:
mode:
authorthdox <thdox@free.fr>2015-02-08 16:31:26 +0100
committerthdox <thdox@free.fr>2015-02-08 16:57:30 +0100
commita60ff5dc22d4aca9fdba000c9c928f4ae38adae4 (patch)
tree96a3c68b5c1a7b4855801ee7d9629369ef934cde /tools/prepare-commit-msg
parent62977ea23a68e3da6da0183b858abd38c3c0ec9f (diff)
downloadfork-ledger-a60ff5dc22d4aca9fdba000c9c928f4ae38adae4.tar.gz
fork-ledger-a60ff5dc22d4aca9fdba000c9c928f4ae38adae4.tar.bz2
fork-ledger-a60ff5dc22d4aca9fdba000c9c928f4ae38adae4.zip
SC2069 The order of the 2>&1 and the redirect matters.
The 2>&1 has to be last. http://www.shellcheck.net/ [ci skip]
Diffstat (limited to 'tools/prepare-commit-msg')
-rwxr-xr-xtools/prepare-commit-msg2
1 files changed, 1 insertions, 1 deletions
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