diff options
author | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-16 17:39:15 +0200 |
---|---|---|
committer | Andreas Guldstrand <andreas.guldstrand@gmail.com> | 2016-04-16 17:39:15 +0200 |
commit | 0c9c086c92595f4848686c861863365267498aab (patch) | |
tree | 83eca1090fbfe6cbecd083537365c94a9ef08799 /sboconfig | |
parent | 0a035d36fb6a225640d31162e4b348dacfa93f96 (diff) | |
download | sbotools2-0c9c086c92595f4848686c861863365267498aab.tar.xz |
Change argument checking to use postscript unless
Diffstat (limited to 'sboconfig')
-rwxr-xr-x | sboconfig | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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."); } |