mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-12 19:50:18 +00:00
make sure tests are able to create tmp directory
This commit is contained in:
@@ -46,15 +46,15 @@ echo -e "$(tput setaf 6)==> RUNNING $(basename $BASH_SOURCE) <==$(tput sgr0)"
|
||||
################################################################
|
||||
|
||||
# the dotfile source
|
||||
tmps=`mktemp -d --suffix='-dotdrop-tests'`
|
||||
tmps=`mktemp -d --suffix='-dotdrop-tests' || mktemp -d`
|
||||
mkdir -p ${tmps}/dotfiles
|
||||
# the dotfile destination
|
||||
tmpd=`mktemp -d --suffix='-dotdrop-tests'`
|
||||
tmpd=`mktemp -d --suffix='-dotdrop-tests' || mktemp -d`
|
||||
#echo "dotfile destination: ${tmpd}"
|
||||
|
||||
# create a shell script
|
||||
export TESTENV="this is my testenv"
|
||||
scr=`mktemp --suffix='-dotdrop-tests'`
|
||||
scr=`mktemp --suffix='-dotdrop-tests' || mktemp -d`
|
||||
chmod +x ${scr}
|
||||
echo -e "#!/bin/bash\necho $TESTENV\n" >> ${scr}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user