1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 17:24:46 +00:00
This commit is contained in:
deadc0de6
2021-10-21 21:36:34 +02:00
parent e8bc0bba2f
commit b225812702

View File

@@ -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"