mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 23:10:32 +00:00
use find and cp instead
This commit is contained in:
parent
88a1384983
commit
c5fcbe24cf
1 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,8 @@ else
|
||||||
vm)
|
vm)
|
||||||
mount_vdisk
|
mount_vdisk
|
||||||
echo "Copying src to 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
|
umount_vdisk
|
||||||
echo "Finished."
|
echo "Finished."
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue