mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
Copy to *.new when not overwrite
This commit is contained in:
parent
36ca9724fa
commit
1557df5e24
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue