From d1438b216c3b3f08f9ded159fb35ab5c31997527 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 4 Feb 2020 22:00:13 +0100 Subject: [PATCH] Styler add empty argument check --- styler/.local/bin/styler | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/styler/.local/bin/styler b/styler/.local/bin/styler index 912079c..813e779 100755 --- a/styler/.local/bin/styler +++ b/styler/.local/bin/styler @@ -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