Fix backup functionality

This commit is contained in:
nnyyxxxx 2024-09-15 03:41:49 -04:00
parent 1a17dbf2ac
commit 09ac407052
3 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ setupAlacritty() {
echo "alacritty is already installed."
fi
echo "Copy alacritty config files"
if [ -d "${HOME}/.config/alacritty" ]; then
if [ -d "${HOME}/.config/alacritty" ] && [ ! -d "${HOME}/.config/alacritty-bak" ]; then
cp -r "${HOME}/.config/alacritty" "${HOME}/.config/alacritty-bak"
fi
mkdir -p "${HOME}/.config/alacritty/"

View File

@ -17,7 +17,7 @@ setupKitty() {
echo "Kitty is already installed."
fi
echo "Copy Kitty config files"
if [ -d "${HOME}/.config/kitty" ]; then
if [ -d "${HOME}/.config/kitty" ] && [ ! -d "${HOME}/.config/kitty-bak" ]; then
cp -r "${HOME}/.config/kitty" "${HOME}/.config/kitty-bak"
fi
mkdir -p "${HOME}/.config/kitty/"

View File

@ -17,8 +17,8 @@ setupRofi() {
echo "Rofi is already installed."
fi
echo "Copy Rofi config files"
if [ -d "$HOME/.config/rofi" ]; then
cp -r "$HOME/.config/rofi" "$HOME/.config/rofi.bak"
if [ -d "$HOME/.config/rofi" ] && [ ! -d "$HOME/.config/rofi-bak" ]; then
cp -r "$HOME/.config/rofi" "$HOME/.config/rofi-bak"
fi
mkdir -p "$HOME/.config/rofi"
wget -O "$HOME/.config/rofi/powermenu.sh" https://github.com/ChrisTitusTech/dwm-titus/raw/main/config/rofi/powermenu.sh