mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 07:20: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