Handle -t argument

This commit is contained in:
RealStickman 2021-03-08 08:34:35 +01:00
parent 3755f62c5f
commit 2c030d64e3

View File

@ -49,6 +49,17 @@ if [[ ! -f "$HOME/.seltheme" ]]; then
func_seltheme
fi
##############################
##### arguments #####
##############################
# handle arguments
if [[ ! -z "$1" ]]; then
# -t/--theme to change theme
if [[ "$1" == "-t" || "$1" == "--theme" ]]; then
func_seltheme
fi
fi
#delete previous backups
echo Removing old backup
rm -rf ~/old_dat