1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-15 23:06:14 +00:00

make sure tests are able to create tmp directory

This commit is contained in:
deadc0de6
2019-07-02 23:36:34 +02:00
parent ecd27d3b60
commit 49275d371d
63 changed files with 153 additions and 153 deletions

View File

@@ -46,7 +46,7 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)"
################################################################
# dotdrop directory
tmps=`mktemp -d --suffix='-dotdrop-tests'`
tmps=`mktemp -d --suffix='-dotdrop-tests' || mktemp -d`
dt="${tmps}/dotfiles"
mkdir -p ${dt}
mkdir -p ${dt}/a/{b,c}
@@ -54,7 +54,7 @@ echo 'a' > ${dt}/a/b/abfile
echo 'a' > ${dt}/a/c/acfile
# fs dotfiles
tmpd=`mktemp -d --suffix='-dotdrop-tests'`
tmpd=`mktemp -d --suffix='-dotdrop-tests' || mktemp -d`
cp -r ${dt}/a ${tmpd}/
# create the config file