mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 15:26:43 +00:00
added --ignore-dots argument
This commit is contained in:
parent
c5fcbe24cf
commit
8b1d036e82
1 changed files with 11 additions and 3 deletions
|
@ -94,9 +94,17 @@ else
|
||||||
;;
|
;;
|
||||||
vm)
|
vm)
|
||||||
mount_vdisk
|
mount_vdisk
|
||||||
echo "Copying src to vdisk..."
|
case $2 in
|
||||||
|
--ignore-dots | --dots)
|
||||||
|
echo "Copying src to vdisk ignoring dotfiles and dotfolders..."
|
||||||
cd ../src/
|
cd ../src/
|
||||||
sudo find . \( ! -path './.*' -and ! -name '.*' \) -and ! -path '*/.*/*' -type f -exec cp --parents {} $TMPMOUNT/ \;
|
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
|
umount_vdisk
|
||||||
echo "Finished."
|
echo "Finished."
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue