We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40037b8 commit 69acc8bCopy full SHA for 69acc8b
tools/gitconfig.sh
@@ -4,13 +4,13 @@ git config diff.c++draft.xfuncname '\\rSec[0-9]+(\[.*\])\{'
4
5
precommit="$(git rev-parse --git-dir)/hooks/pre-commit"
6
7
-test -f "$precommit" && exit
+test -f "${precommit}" && exit
8
read -p "Install 'make check' pre-commit hook? [Y/n] " hook
9
-if [ -z "$hook" -o "$hook" = "y" -o "$hook" = "Y" ]; then
10
- cat <<EOF > "$precommit"
+if [ -z "${hook}" -o "${hook}" = "y" -o "${hook}" = "Y" ]; then
+ cat <<EOF > "${precommit}"
11
#!/bin/sh
12
cd \$(git rev-parse --show-toplevel)/source
13
make check
14
EOF
15
- chmod +x "$precommit"
+ chmod +x "${precommit}"
16
fi
0 commit comments