From d83733bd8655a44ee8c2cd129a440f0de461cf77 Mon Sep 17 00:00:00 2001 From: Perdixky <3293789706@qq.com> Date: Fri, 12 Dec 2025 08:42:45 +0800 Subject: [PATCH] Restore original rsync_dir__sync() implementation --- sdata/subcmd-install/3.files.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdata/subcmd-install/3.files.sh b/sdata/subcmd-install/3.files.sh index aa3099ab0..d0e537aa3 100644 --- a/sdata/subcmd-install/3.files.sh +++ b/sdata/subcmd-install/3.files.sh @@ -62,7 +62,10 @@ rsync_dir__sync(){ # `--delete' for rsync to make sure that # original dotfiles and new ones in the SAME DIRECTORY # (eg. in ~/.config/hypr) won't be mixed together - rsync_dir__sync_exclude "$1" "$2" + x mkdir -p "$2" + local dest="$(realpath -se $2)" + x mkdir -p "$(dirname ${INSTALLED_LISTFILE})" + rsync -a --delete --out-format='%i %n' "$1"/ "$2"/ | awk -v d="$dest" '$1 ~ /^>/{ sub(/^[^ ]+ /,""); printf d "/" $0 "\n" }' >> "${INSTALLED_LISTFILE}" } rsync_dir__sync_exclude(){ # NOTE: This function is only for using in other functions