Merge pull request #389 from nnyyxxxx/testing-10

Fix backup functionality
This commit is contained in:
Chris Titus 2024-09-15 18:48:51 -05:00 committed by GitHub
commit 52f39f42e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@ setupAlacritty() {
echo "alacritty is already installed." echo "alacritty is already installed."
fi fi
echo "Copy alacritty config files" 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" cp -r "${HOME}/.config/alacritty" "${HOME}/.config/alacritty-bak"
fi fi
mkdir -p "${HOME}/.config/alacritty/" mkdir -p "${HOME}/.config/alacritty/"

View File

@ -17,7 +17,7 @@ setupKitty() {
echo "Kitty is already installed." echo "Kitty is already installed."
fi fi
echo "Copy Kitty config files" 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" cp -r "${HOME}/.config/kitty" "${HOME}/.config/kitty-bak"
fi fi
mkdir -p "${HOME}/.config/kitty/" mkdir -p "${HOME}/.config/kitty/"

View File

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