mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-12-23 20:09:44 +00:00
Merge pull request #389 from nnyyxxxx/testing-10
Fix backup functionality
This commit is contained in:
commit
52f39f42e4
|
@ -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/"
|
||||
|
@ -27,4 +27,4 @@ setupAlacritty() {
|
|||
|
||||
checkEnv
|
||||
checkEscalationTool
|
||||
setupAlacritty
|
||||
setupAlacritty
|
|
@ -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