Updates for rsync

This commit is contained in:
Stephan Raabe
2023-11-25 16:53:12 +01:00
parent 4a657c7f11
commit 49093fef5d
4 changed files with 40 additions and 2 deletions
+6
View File
@@ -54,6 +54,12 @@ if gum confirm "Do you want to install the prepared dotfiles now?" ;then
echo "~/dotfiles folder created."
fi
rsync -a -I ~/dotfiles-versions/$version/ ~/dotfiles/
if [[ $(_isFolderEmpty ~/dotfiles/) == 0 ]] ;then
echo "AN ERROR HAS OCCURED. Copy prepared dofiles from ~/dotfiles-versions/$version/ to ~/dotfiles/ failed"
echo "Please check that rsync is installad on your system."
echo "Execution of rsync -a -I ~/dotfiles-versions/$version/ ~/dotfiles/ is required."
exit
fi
echo "All files from ~/dotfiles-versions/$version/ to ~/dotfiles/ copied."
else
echo "Skipped: DEV MODE!"