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

fix chmod compare bug

This commit is contained in:
deadc0de6
2022-05-26 21:13:39 +02:00
committed by deadc0de
parent 93e33a4d9a
commit 8938cbd602
5 changed files with 36 additions and 9 deletions

View File

@@ -82,6 +82,9 @@ flink="${tmpd}/filelink"
echo "filelink" > ${flink}
chmod 777 ${flink}
echo "f777" > ${tmps}/dotfiles/f777
chmod 700 ${tmps}/dotfiles/f777
toimport="${dnormal} ${dlink} ${dlinkchildren} ${fnormal} ${flink}"
# create the config file
@@ -93,10 +96,23 @@ config:
create: true
dotpath: dotfiles
dotfiles:
f_f777:
src: f777
dst: ${tmpd}/f777
chmod: 777
profiles:
p1:
dotfiles:
- f_f777
_EOF
#cat ${cfg}
# install
cd ${ddpath} | ${bin} install -f -c ${cfg} -p p1
# compare
cd ${ddpath} | ${bin} compare -c ${cfg} -p p1
# import
for i in ${toimport}; do
cd ${ddpath} | ${bin} import -c ${cfg} -f -p p1 ${i}

View File

@@ -88,6 +88,7 @@ clear_on_exit "${tmpd}"
cfg="${tmps}/config.yaml"
echo 'f777' > ${tmps}/dotfiles/f777
chmod 700 ${tmps}/dotfiles/f777
echo 'link' > ${tmps}/dotfiles/link
mkdir -p ${tmps}/dotfiles/dir
echo "f1" > ${tmps}/dotfiles/dir/f1