aboutsummaryrefslogtreecommitdiff
path: root/sboconfig
diff options
context:
space:
mode:
authorAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-16 17:39:15 +0200
committerAndreas Guldstrand <andreas.guldstrand@gmail.com>2016-04-16 17:39:15 +0200
commit0c9c086c92595f4848686c861863365267498aab (patch)
tree83eca1090fbfe6cbecd083537365c94a9ef08799 /sboconfig
parent0a035d36fb6a225640d31162e4b348dacfa93f96 (diff)
downloadsbotools2-0c9c086c92595f4848686c861863365267498aab.tar.xz
Change argument checking to use postscript unless
Diffstat (limited to 'sboconfig')
-rwxr-xr-xsboconfig2
1 files changed, 1 insertions, 1 deletions
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.");
}