From c5fcbe24cf73766e540a6d5f9694913ec29ab57f Mon Sep 17 00:00:00 2001 From: y4my4my4m <8145020+y4my4my4m@users.noreply.github.com> Date: Fri, 25 Aug 2023 16:17:27 +0900 Subject: [PATCH] use find and cp instead --- build/sync.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/sync.sh b/build/sync.sh index 6a4d7321..f7d828f5 100755 --- a/build/sync.sh +++ b/build/sync.sh @@ -95,7 +95,8 @@ else vm) mount_vdisk echo "Copying src to vdisk..." - sudo rsync -av --exclude='.*' ../src/ $TMPMOUNT/ + cd ../src/ + sudo find . \( ! -path './.*' -and ! -name '.*' \) -and ! -path '*/.*/*' -type f -exec cp --parents {} $TMPMOUNT/ \; umount_vdisk echo "Finished." ;;