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:
@@ -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}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user