mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-14 20:39:55 -05:00
Use mktemp -d
for RBENV_TEST_DIR
This prevents the tests from removing an existing directory. Fixes #561 (https://github.com/sstephenson/rbenv/issues/561)
This commit is contained in:
parent
14bc162ca6
commit
024bee1a6f
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
unset RBENV_VERSION
|
||||
unset RBENV_DIR
|
||||
|
||||
RBENV_TEST_DIR="${BATS_TMPDIR}/rbenv"
|
||||
RBENV_TEST_DIR="$(mktemp -d --tmpdir=$BATS_TMPDIR rbenv.bats.XXX)"
|
||||
|
||||
# guard against executing this block twice due to bats internals
|
||||
if [ "$RBENV_ROOT" != "${RBENV_TEST_DIR}/root" ]; then
|
||||
|
|
Loading…
Reference in a new issue