fix: use 6 X to support running under busybox

mktemp from busybox requires that all templates end with XXXXXX.
This commit is contained in:
Jose Diaz-Gonzalez
2019-08-12 18:16:16 -04:00
parent 925c6c4c28
commit 3ca6245b00
20 changed files with 22 additions and 22 deletions

View File

@@ -43,7 +43,7 @@ main() {
exit 1
fi
TMP_OUTPUT=$(mktemp "/tmp/${FUNCNAME[0]}.XXXX")
TMP_OUTPUT=$(mktemp "/tmp/${FUNCNAME[0]}.XXXXXX")
trap 'rm -rf "$TMP_OUTPUT" >/dev/null' RETURN INT TERM EXIT
eval "$(grep "export BATS_TEST_PATTERN" </usr/local/libexec/bats-core/bats)"