Commit 7f1ebf92 authored by Vojtěch Horký's avatar Vojtěch Horký
Browse files

Clean-up temporary file names

parent f2ac5c04
......@@ -45,7 +45,7 @@ nswi177_setup() {
if [[ -d /dev/shm ]] && [[ -w /dev/shm ]] && "${NSWI177_USE_SHM_TEMP:-true}"; then
NSWI177_TEMP_BASE="$( mktemp -d -p /dev/shm/ nswi177-bats-XXXXXXXXXX )"
else
NSWI177_TEMP_BASE="$( mktemp -d )"
NSWI177_TEMP_BASE="$( mktemp -d -p "${TMPDIR:-/tmp}" nswi177-bats-XXXXXXXXXX )"
fi
NSWI177_TEMP="${NSWI177_TEMP_BASE}/data"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment