Remove unnecessary ||. Change output a bit
This commit is contained in:
parent
5df8d2a9f1
commit
51ad7fcf12
@ -35,6 +35,8 @@ cd "$HOME"
|
|||||||
#remove old installs
|
#remove old installs
|
||||||
rm -rf ~/config
|
rm -rf ~/config
|
||||||
|
|
||||||
|
echo "Checking config file"
|
||||||
|
|
||||||
#clone this repo
|
#clone this repo
|
||||||
git clone https://gitlab.com/RealStickman-arch/config.git &>/dev/null
|
git clone https://gitlab.com/RealStickman-arch/config.git &>/dev/null
|
||||||
|
|
||||||
@ -80,80 +82,78 @@ fi
|
|||||||
|
|
||||||
# make new backup
|
# make new backup
|
||||||
echo Creating backup
|
echo Creating backup
|
||||||
mkdir -p ~/old_dat/.config || echo Directory already exists
|
mkdir -p ~/old_dat/.config
|
||||||
mkdir -p ~/old_dat/.doom.d || echo Directory already exists
|
mkdir -p ~/old_dat/.doom.d
|
||||||
mkdir -p ~/old_dat/.easystroke || echo Directory already exists
|
mkdir -p ~/old_dat/.easystroke
|
||||||
mkdir -p ~/old_dat/.mozilla || echo Directory already exists
|
mkdir -p ~/old_dat/.mozilla
|
||||||
mkdir -p ~/old_dat/scripts || echo Directory already exists
|
mkdir -p ~/old_dat/scripts
|
||||||
mkdir -p ~/old_dat/.elvish || echo Directory already exists
|
mkdir -p ~/old_dat/.elvish
|
||||||
|
|
||||||
# make subdirectories
|
# make subdirectories
|
||||||
mkdir -p ~/old_dat/.local/share || echo Directory already exists
|
mkdir -p ~/old_dat/.local/share
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
# back stuff up
|
# back stuff up
|
||||||
##############################
|
##############################
|
||||||
#config folders
|
#config folders
|
||||||
if [[ -d ~/.config/MangoHud ]]; then
|
if [[ -d ~/.config/MangoHud ]]; then
|
||||||
rsync -ah ~/.config/MangoHud ~/old_dat/.config/ || echo Directory does not exist
|
rsync -ah ~/.config/MangoHud ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/fish ]]; then
|
if [[ -d ~/.config/fish ]]; then
|
||||||
rsync -ah ~/.config/fish ~/old_dat/.config/ || echo Directory does not exist
|
rsync -ah ~/.config/fish ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/gtk-3.0 ]]; then
|
if [[ -d ~/.config/gtk-3.0 ]]; then
|
||||||
rsync -ah ~/.config/gtk-3.0 ~/old_dat/.config/ || echo Directory does not exist
|
rsync -ah ~/.config/gtk-3.0 ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/i3 ]]; then
|
if [[ -d ~/.config/i3 ]]; then
|
||||||
rsync -ah ~/.config/i3 ~/old_dat/.config/ || echo Directory does not exist
|
rsync -ah ~/.config/i3 ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/neofetch ]]; then
|
if [[ -d ~/.config/neofetch ]]; then
|
||||||
rsync -ah ~/.config/neofetch ~/old_dat/.config/ || echo Directory does not exist
|
rsync -ah ~/.config/neofetch ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/openbox ]]; then
|
if [[ -d ~/.config/openbox ]]; then
|
||||||
rsync -ah ~/.config/openbox ~/old_dat/.config/ || echo Directory does not exist
|
rsync -ah ~/.config/openbox ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/polybar ]]; then
|
if [[ -d ~/.config/polybar ]]; then
|
||||||
rsync -ah ~/.config/polybar ~/old_dat/.config/ || echo Directory does not exist
|
rsync -ah ~/.config/polybar ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/termite ]]; then
|
if [[ -d ~/.config/termite ]]; then
|
||||||
rsync -ah ~/.config/termite ~/old_dat/.config/ || echo Directory does not exist
|
rsync -ah ~/.config/termite ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
if [[ -d ~/.config/variety ]]; then
|
if [[ -d ~/.config/variety ]]; then
|
||||||
rsync -ah ~/.config/variety ~/old_dat/.config/ || echo Directory does not exist
|
rsync -ah ~/.config/variety ~/old_dat/.config/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# doom.d folder
|
# doom.d folder
|
||||||
if [[ -d ~/.doom.d ]]; then
|
if [[ -d ~/.doom.d ]]; then
|
||||||
rsync -ah ~/.doom.d ~/old_dat/ || echo Directory does not exist
|
rsync -ah ~/.doom.d ~/old_dat/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# easystroke
|
# easystroke
|
||||||
if [[ -d ~/.easystroke ]]; then
|
if [[ -d ~/.easystroke ]]; then
|
||||||
rsync -ah ~/.easystroke ~/old_dat/ || echo Directory does not exist
|
rsync -ah ~/.easystroke ~/old_dat/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# elvish
|
# elvish
|
||||||
if [[ -d ~/.elvish ]]; then
|
if [[ -d ~/.elvish ]]; then
|
||||||
rsync -ah ~/.elvish ~/old_dat/ || echo Directory does not exist
|
rsync -ah ~/.elvish ~/old_dat/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# local folder
|
# local folder
|
||||||
if [[ -d ~/.local/share/applications ]]; then
|
if [[ -d ~/.local/share/applications ]]; then
|
||||||
rsync -ah ~/.local/share/applications/ ~/old_dat/.local/share/ || echo Directory does not exist
|
rsync -ah ~/.local/share/applications/ ~/old_dat/.local/share/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# mozilla
|
# mozilla
|
||||||
if [[ -d ~/.mozilla ]]; then
|
if [[ -d ~/.mozilla ]]; then
|
||||||
rsync -ah ~/.mozilla ~/old_dat/ || echo Directory does not exist
|
rsync -ah ~/.mozilla ~/old_dat/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# scripts
|
# scripts
|
||||||
if [[ -d ~/scripts ]]; then
|
if [[ -d ~/scripts ]]; then
|
||||||
rsync -ah ~/scripts ~/old_dat/ || echo Directory does not exist
|
rsync -ah ~/scripts ~/old_dat/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo Made backups
|
|
||||||
|
|
||||||
# remove old templates
|
# remove old templates
|
||||||
if [[ -d ~/.config/Vorlagen ]]; then
|
if [[ -d ~/.config/Vorlagen ]]; then
|
||||||
rm -r ~/.config/Vorlagen
|
rm -r ~/.config/Vorlagen
|
||||||
@ -280,7 +280,6 @@ fi
|
|||||||
echo Unzipping gimp plugins
|
echo Unzipping gimp plugins
|
||||||
unzip -o ~/.config/GIMP/2.10/plug-ins/export_layers-3.3.1.zip -d ~/.config/GIMP/2.10/plug-ins/ > /dev/null
|
unzip -o ~/.config/GIMP/2.10/plug-ins/export_layers-3.3.1.zip -d ~/.config/GIMP/2.10/plug-ins/ > /dev/null
|
||||||
rm ~/.config/GIMP/2.10/plug-ins/export_layers-3.3.1.zip > /dev/null
|
rm ~/.config/GIMP/2.10/plug-ins/export_layers-3.3.1.zip > /dev/null
|
||||||
echo Unzipped gimp plugins
|
|
||||||
|
|
||||||
# xfce settings
|
# xfce settings
|
||||||
# disable screensaver & locker
|
# disable screensaver & locker
|
||||||
|
Loading…
Reference in New Issue
Block a user