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

fix tests

This commit is contained in:
deadc0de6
2019-11-27 20:10:13 +01:00
parent d63424e793
commit 28f39ad0ab
6 changed files with 41 additions and 40 deletions

View File

@@ -88,8 +88,7 @@ _EOF
cd ${ddpath} | ${bin} import -c ${cfg} -p p1 -V --link=link_children ${dt}
# check is set to link_children
line=$(cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -V | grep "d_`basename ${dt}`")
echo ${line} | grep 'link: link_children'
cd ${ddpath} | ${bin} files -c ${cfg} -p p1 -V -G | grep "d_`basename ${dt}`" | grep ',link:link_children$'
# checks file exists in dotpath
[ ! -e ${dotpath}/${dt} ] && echo "dotfile not imported" && exit 1