We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 999f11a commit f2946d6Copy full SHA for f2946d6
1 file changed
test/init.sh
@@ -13,7 +13,7 @@ cat << EOS > .pre-commit-config.yaml
13
- id: shell-lint
14
EOS
15
16
-tmpdir=$(mktemp -t pre-commit-shell -d)
+tmpdir=$(mktemp -t pre-commit-shell.XXXXXX -d)
17
cp test/test.sh "$tmpdir"
18
cp test/.pre-commit-config.yaml "$tmpdir"
19
pushd "$tmpdir"
@@ -22,7 +22,7 @@ git add .pre-commit-config.yaml; git commit -a -m "init test case"
22
pre-commit install
23
pre-commit run
24
git add . --all
25
-tmpfile=$(mktemp -t pre-commit-shell)
+tmpfile=$(mktemp -t pre-commit-shell.XXX)
26
git commit -a -m "let begin test" &> "$tmpfile"
27
popd
28
rm -rf "$tmpdir"
0 commit comments