Add -I to rsync to overwrite files in the dest
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ if gum confirm "Do you want to install the prepared dotfiles now?" ;then
|
||||
mkdir ~/dotfiles
|
||||
echo "~/dotfiles folder created."
|
||||
fi
|
||||
rsync -a ~/dotfiles-versions/$version/ ~/dotfiles/
|
||||
rsync -a -I ~/dotfiles-versions/$version/ ~/dotfiles/
|
||||
echo "All files from ~/dotfiles-versions/$version/ to ~/dotfiles/ copied."
|
||||
else
|
||||
echo "Skipped: DEV MODE!"
|
||||
|
||||
@@ -26,6 +26,6 @@ else
|
||||
mkdir ~/dotfiles-versions/$version
|
||||
echo "Clean build prepared for the installation."
|
||||
fi
|
||||
rsync -a --exclude-from=.install/excludes.txt . ~/dotfiles-versions/$version/
|
||||
rsync -a -I --exclude-from=.install/excludes.txt . ~/dotfiles-versions/$version/
|
||||
echo "dotfiles $version successfully prepared in ~/dotfiles-versions/$version/"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user