use find and cp instead

This commit is contained in:
y4my4my4m 2023-08-25 16:17:27 +09:00
parent 88a1384983
commit c5fcbe24cf

View file

@ -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."
;;