Styler add empty argument check
This commit is contained in:
parent
7b076d7a2f
commit
d1438b216c
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue