From 2c030d64e32814bb320bf1a25ab229eaf8b9ae6d Mon Sep 17 00:00:00 2001 From: RealStickman Date: Mon, 8 Mar 2021 08:34:35 +0100 Subject: [PATCH] Handle -t argument --- arch-config/scripts/arch-config.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch-config/scripts/arch-config.sh b/arch-config/scripts/arch-config.sh index 0672d841..2d088635 100755 --- a/arch-config/scripts/arch-config.sh +++ b/arch-config/scripts/arch-config.sh @@ -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