Let 3.files.sh logs installed files

This commit is contained in:
clsty
2025-11-18 17:02:46 +08:00
parent e830dc93cc
commit 9fd83a2812
5 changed files with 94 additions and 37 deletions
+3 -3
View File
@@ -217,16 +217,16 @@ for pattern in "${patterns[@]}"; do
case "$mode" in
"sync")
if [[ -d "$from" ]]; then
warning_rsync_delete
warning_overwrite
v rsync -av --delete "${excludes[@]}" "$from/" "$to/"
else
warning_rsync_normal
warning_overwrite
# For files, don't use trailing slash and don't use --delete
v rsync -av "${excludes[@]}" "$from" "$to"
fi
;;
"soft")
warning_rsync_normal
warning_overwrite
if [[ -d "$from" ]]; then
v rsync -av "${excludes[@]}" "$from/" "$to/"
else