Styler add empty argument check

This commit is contained in:
Marty Oehme 2020-02-04 22:00:13 +01:00
parent 7b076d7a2f
commit d1438b216c

View file

@ -120,6 +120,10 @@ switch_theme() {
# call processors for all installed packages
set_theme() {
local theme="$1"
if [[ -z $theme ]]; then
printf "Theme application requires an argument.\n"
exit 1
fi
local permanent="${2:-true}"
local packages