From 1557df5e2404392653b845bb5d2e9508d7c9b88a Mon Sep 17 00:00:00 2001 From: clsty Date: Sun, 3 Mar 2024 07:09:17 +0800 Subject: [PATCH] Copy to *.new when not overwrite --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 21667d8a..afee7c15 100755 --- a/install.sh +++ b/install.sh @@ -159,6 +159,7 @@ v rsync -av --delete --exclude '/user_options.js' .config/ags/ "$HOME"/.config/a t="$HOME/.config/ags/user_options.js" if [ -f $t ];then echo -e "\e[34m[$0]: \"$t\" already exists.\e[0m" + v cp -f .config/ags/user_options.js $t.new else echo -e "\e[33m[$0]: \"$t\" does not exist yet.\e[0m" v cp .config/ags/user_options.js $t @@ -169,6 +170,7 @@ v rsync -av --delete --exclude '/custom' --exclude '/hyprland.conf' .config/hypr t="$HOME/.config/hypr/hyprland.conf" if [ -f $t ];then echo -e "\e[34m[$0]: \"$t\" already exists.\e[0m" + v cp -f .config/hypr/hyprland.conf $t.new if [ ! -d "$HOME"/.config/hypr/custom ];then echo -e "\e[33m[$0]: But it seems that you are not using a \"custom\" folder.\e[0m" v cp .config/hypr/hyprland.conf $t