mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-14 22:50:11 +00:00
make sure tests are able to create tmp directory
This commit is contained in:
@@ -46,12 +46,12 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)"
|
||||
################################################################
|
||||
|
||||
# dotdrop directory
|
||||
basedir=`mktemp -d --suffix='-dotdrop-tests'`
|
||||
basedir=`mktemp -d --suffix='-dotdrop-tests' || mktemp -d`
|
||||
echo "[+] dotdrop dir: ${basedir}"
|
||||
echo "[+] dotpath dir: ${basedir}/dotfiles"
|
||||
|
||||
# the dotfile to be imported
|
||||
tmpd=`mktemp -d --suffix='-dotdrop-tests'`
|
||||
tmpd=`mktemp -d --suffix='-dotdrop-tests' || mktemp -d`
|
||||
|
||||
# originally imported directory
|
||||
echo 'unique' > ${tmpd}/uniquefile
|
||||
|
||||
Reference in New Issue
Block a user