aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsboconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/sboconfig b/sboconfig
index f969cbd..cfa8921 100755
--- a/sboconfig
+++ b/sboconfig
@@ -105,7 +105,7 @@ if (exists $changes{SBO_HOME}) {
# TODO: if multiple options are provided to this script, this sub should write
# them all at once, instead of only a single one and having to call it once for
# each option specified to the script.
-sub config_write ($$) {
+sub config_write {
exists $_[1] or script_error 'config_write requires two arguments.';
my ($key, $val) = @_;
if (! -d $conf_dir) {
@@ -146,7 +146,7 @@ sub config_write ($$) {
while (my ($key, $value) = each %changes) {
say "Setting $key to $value...";
- config_write $key, $value or warn "Unable to write to $conf_file\n";
+ config_write ($key, $value) or warn "Unable to write to $conf_file\n";
}
exit 0;