diff options
author | Sven M. Hallberg <pesco@khjk.org> | 2018-05-09 18:38:44 +0200 |
---|---|---|
committer | Sven M. Hallberg <pesco@khjk.org> | 2018-05-09 18:38:44 +0200 |
commit | 595c72556bf0104fc1d7813de6e355091655ed11 (patch) | |
tree | 0edff21f16c52f06da5092f939fcd8924797a072 | |
parent | 372737ba74baa2af8ee798df1b2768a5d827a179 (diff) |
use at least 6 Xs in mktemp filename templates
OpenBSD mktemp fails with an error otherwise.
-rwxr-xr-x | dev/tools/pre-commit | 6 | ||||
-rwxr-xr-x | test-suite/save-logs.sh | 2 |
2 files changed, 4 insertions, 4 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.)" diff --git a/test-suite/save-logs.sh b/test-suite/save-logs.sh index b61362108..9b8fff09f 100755 --- a/test-suite/save-logs.sh +++ b/test-suite/save-logs.sh @@ -9,7 +9,7 @@ mkdir "$SAVEDIR" # keep this synced with test-suite/Makefile FAILMARK="==========> FAILURE <==========" -FAILED=$(mktemp /tmp/coq-check-XXXXX) +FAILED=$(mktemp /tmp/coq-check-XXXXXX) find . '(' -path ./bugs/opened -prune ')' -o '(' -name '*.log' -exec grep "$FAILMARK" -q '{}' ';' -print0 ')' > "$FAILED" rsync -a --from0 --files-from="$FAILED" . "$SAVEDIR" |