summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthdox <thdox@free.fr>2015-02-08 16:33:40 +0100
committerthdox <thdox@free.fr>2015-02-08 16:57:36 +0100
commit9d82674c889a831418a792ba6505e57c8d4ca225 (patch)
tree383c8697c8720a8f0a2ff3bb67c6f27b630e6482
parenta60ff5dc22d4aca9fdba000c9c928f4ae38adae4 (diff)
downloadfork-ledger-9d82674c889a831418a792ba6505e57c8d4ca225.tar.gz
fork-ledger-9d82674c889a831418a792ba6505e57c8d4ca225.tar.bz2
fork-ledger-9d82674c889a831418a792ba6505e57c8d4ca225.zip
SC2086 Double quote to prevent globbing and word splitting.
http://www.shellcheck.net/ [ci skip]
-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 5045fe7a..585b5397 100755
--- a/tools/prepare-commit-msg
+++ b/tools/prepare-commit-msg
@@ -15,7 +15,7 @@ add_ci_skip ()
[ $? -eq 0 ] && return
if [ $(git diff --cached --name-only | grep --count "$pattern") -eq 0 ]; then
- tempfile=$(mktemp $0.XXXXXX)
+ tempfile=$(mktemp "$0".XXXXXX)
cat - "$1" <<EOF > "$tempfile"
# It seems the changes to be committed are irrelevant for the continuous