From 595c72556bf0104fc1d7813de6e355091655ed11 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Wed, 9 May 2018 18:38:44 +0200 Subject: use at least 6 Xs in mktemp filename templates OpenBSD mktemp fails with an error otherwise. --- dev/tools/pre-commit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dev/tools') 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.)" -- cgit v1.2.3