mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
Sync custom folder if not exists
This commit is contained in:
parent
1557df5e24
commit
b21e0dc13b
1 changed files with 9 additions and 4 deletions
13
install.sh
13
install.sh
|
|
@ -171,14 +171,19 @@ 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
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo -e "\e[33m[$0]: \"$t\" does not exist yet.\e[0m"
|
||||
v cp .config/hypr/hyprland.conf $t
|
||||
fi
|
||||
t="$HOME/.config/hypr/custom"
|
||||
if [ -d $t ];then
|
||||
echo -e "\e[34m[$0]: \"$t\" already exists, will not do anything.\e[0m"
|
||||
fi
|
||||
else
|
||||
echo -e "\e[33m[$0]: \"$t\" does not exist yet.\e[0m"
|
||||
v rsync -av --delete .config/hypr/custom/ $t/
|
||||
fi
|
||||
|
||||
|
||||
# some foldes (eg. .local/bin) should be processed seperately to avoid `--delete' for rsync,
|
||||
|
|
|
|||
Loading…
Reference in a new issue