1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-12 00:44:00 +00:00

update doc and tests for link

This commit is contained in:
deadc0de6
2022-05-31 18:24:30 +02:00
committed by deadc0de
parent cda6d08f5f
commit fa1be9d29c
16 changed files with 41 additions and 40 deletions

View File

@@ -142,7 +142,7 @@ mkdir -p ${tmps}/dotfiles
# import without --preserve-mode and link
for i in ${toimport}; do
cd ${ddpath} | ${bin} import -c ${cfg} -l link -f -p p1 -V ${i}
cd ${ddpath} | ${bin} import -c ${cfg} -l absolute -f -p p1 -V ${i}
done
cat ${cfg}
@@ -155,7 +155,7 @@ cnt=`cat ${cfg} | grep "chmod: '777'" | wc -l`
[ "${cnt}" != "${tot}" ] && echo "not all chmod inserted (2)" && exit 1
tot=`echo ${toimport} | wc -w`
cnt=`cat ${cfg} | grep 'link: link' | wc -l`
cnt=`cat ${cfg} | grep 'link: absolute' | wc -l`
[ "${cnt}" != "${tot}" ] && echo "not all link inserted" && exit 1
## --preserve-mode