mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 16:49:42 +00:00
fix test
This commit is contained in:
@@ -87,13 +87,14 @@ echo 'test_y' > ${basedir}/dotfiles/y
|
||||
echo "00000000 01 02 03 04 05" | xxd -r - ${basedir}/dotfiles/z
|
||||
|
||||
echo "[+] install"
|
||||
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 --showdiff --verbose --temp > ${basedir}/log
|
||||
log="${basedir}/log"
|
||||
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1 --showdiff --verbose --temp > ${log}
|
||||
|
||||
tmpfile=`cat ${basedir}/log | grep 'installed to tmp ' | sed 's/^.*to tmp "\(.*\)"./\1/'`
|
||||
echo "tmpfile: ${tmpfile}"
|
||||
clear_on_exit "${tmpfile}"
|
||||
|
||||
cat $log | grep '^3 dotfile(s) installed.$'
|
||||
cat ${log} | grep '^3 dotfile(s) installed.$'
|
||||
[ "$?" != "0" ] && exit 1
|
||||
|
||||
echo "OK"
|
||||
|
||||
Reference in New Issue
Block a user