1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 21:54:16 +00:00
This commit is contained in:
deadc0de6
2020-05-28 09:45:05 +02:00
parent c29fb58700
commit 126862bf6d
3 changed files with 13 additions and 3 deletions

View File

@@ -90,6 +90,16 @@ nb=`cat ${cfg} | grep d_adir | wc -l`
nb=`cat ${cfg} | grep f_file3 | wc -l`
[ "${nb}" != "2" ] && echo 'bad config2' && exit 1
cntpre=`find ${tmps}/dotfiles -type f | wc -l`
# reimport
cd ${ddpath} | ${bin} import -c ${cfg} -p p1 -V ${tmpd}/adir
cd ${ddpath} | ${bin} import -c ${cfg} -p p1 -V ${tmpd}/file3
cntpost=`find ${tmps}/dotfiles -type f | wc -l`
[ "${cntpost}" != "${cntpre}" ] && echo "import issue" && exit 1
## CLEANING
rm -rf ${tmps} ${tmpd}