From 8b1d036e820e79666407e24f84099a67eb72f5df Mon Sep 17 00:00:00 2001 From: y4my4my4m <8145020+y4my4my4m@users.noreply.github.com> Date: Mon, 28 Aug 2023 14:11:23 +0900 Subject: [PATCH] added --ignore-dots argument --- build/sync.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/build/sync.sh b/build/sync.sh index f7d828f5..d4f39c9e 100755 --- a/build/sync.sh +++ b/build/sync.sh @@ -94,9 +94,17 @@ else ;; vm) mount_vdisk - echo "Copying src to vdisk..." - cd ../src/ - sudo find . \( ! -path './.*' -and ! -name '.*' \) -and ! -path '*/.*/*' -type f -exec cp --parents {} $TMPMOUNT/ \; + case $2 in + --ignore-dots | --dots) + echo "Copying src to vdisk ignoring dotfiles and dotfolders..." + cd ../src/ + sudo find . \( ! -path './.*' -and ! -name '.*' \) -and ! -path '*/.*/*' -type f -exec cp --parents {} $TMPMOUNT/ \; + ;; + *) + echo "Copying entire src to vdisk..." + sudo cp -r ../src/* $TMPMOUNT + ;; + esac umount_vdisk echo "Finished." ;;