mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 13:22:28 +00:00
Fix backup functionality
This commit is contained in:
parent
1a17dbf2ac
commit
09ac407052
|
@ -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/"
|
||||
|
|
|
@ -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/"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user