aboutsummaryrefslogtreecommitdiffhomepage
path: root/dev/tools
diff options
context:
space:
mode:
authorGravatar Sven M. Hallberg <pesco@khjk.org>2018-05-09 18:38:44 +0200
committerGravatar Sven M. Hallberg <pesco@khjk.org>2018-05-09 18:38:44 +0200
commit595c72556bf0104fc1d7813de6e355091655ed11 (patch)
tree0edff21f16c52f06da5092f939fcd8924797a072 /dev/tools
parent372737ba74baa2af8ee798df1b2768a5d827a179 (diff)
use at least 6 Xs in mktemp filename templates
OpenBSD mktemp fails with an error otherwise.
Diffstat (limited to 'dev/tools')
-rwxr-xr-xdev/tools/pre-commit6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/tools/pre-commit b/dev/tools/pre-commit
index b56925c37..ad2f2f93e 100755
--- a/dev/tools/pre-commit
+++ b/dev/tools/pre-commit
@@ -14,9 +14,9 @@ then
# We fix whitespace in the index and in the working tree
# separately to preserve non-added changes.
- index=$(mktemp "git-fix-ws-index.XXXXX")
- fixed_index=$(mktemp "git-fix-ws-index-fixed.XXXXX")
- tree=$(mktemp "git-fix-ws-tree.XXXXX")
+ index=$(mktemp "git-fix-ws-index.XXXXXX")
+ fixed_index=$(mktemp "git-fix-ws-index-fixed.XXXXXX")
+ tree=$(mktemp "git-fix-ws-tree.XXXXXX")
1>&2 echo "Patches are saved in '$index', '$fixed_index' and '$tree'."
1>&2 echo "If an error destroys your changes you can recover using them."
1>&2 echo "(The files are cleaned up on success.)"