Fixing the mktemp function on Linux

pull/1559/head
Nils Winkler 2020-04-13 21:29:18 +02:00
parent 818a95d79c
commit bc433cd999
No known key found for this signature in database
GPG Key ID: 317C6E70C88A89B1
1 changed files with 3 additions and 1 deletions

View File

@ -50,7 +50,9 @@ setup_test_fixture() {
}
setup() {
TEST_TEMP_DIR="$(mktemp -d -t 'bash-it-test')"
# Temporarily using `mktemp` directly, since the bats-file function
# `temp_make` does not run on macOS
TEST_TEMP_DIR="$(mktemp -d -t 'bash-it-test.XXXX')"
export TEST_TEMP_DIR
export BASH_IT_TEST_DIR="${TEST_TEMP_DIR}/.bash_it"