mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-25 15:10:28 +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)
|
||||
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."
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue