From 0c9c086c92595f4848686c861863365267498aab Mon Sep 17 00:00:00 2001 From: Andreas Guldstrand Date: Sat, 16 Apr 2016 17:39:15 +0200 Subject: Change argument checking to use postscript unless --- sboconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sboconfig') diff --git a/sboconfig b/sboconfig index 3088592..ebeccd5 100755 --- a/sboconfig +++ b/sboconfig @@ -130,7 +130,7 @@ if (exists $changes{SLACKWARE_VERSION}) { # each option specified to the script. sub config_write { my ($key, $val) = @_; - @_ == 2 or script_error('config_write requires two arguments.'); + script_error('config_write requires two arguments.') unless @_ == 2; if (! -d $conf_dir) { mkdir $conf_dir or usage_error("Unable to create $conf_dir. Exiting."); } -- cgit v1.2.3