From f8d49a5b2424b9abba30083017fa6435f4ba6343 Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 16 Apr 2016 18:32:26 +0200 Subject: Rewrite another show_usage invocation --- sboconfig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sboconfig b/sboconfig index ebeccd5..9c5483d 100755 --- a/sboconfig +++ b/sboconfig @@ -90,7 +90,10 @@ if (exists $options{list}) { exit 0; } -show_usage() and exit 0 unless keys %options > 0; +if (not %options) { + show_usage(); + exit 0; +} # setup what's being changed, sanity check. my %changes; -- cgit v1.2.3