diff options
author | Jacob Pipkin <j@dawnrazor.net> | 2012-11-05 04:05:26 -0600 |
---|---|---|
committer | Jacob Pipkin <j@dawnrazor.net> | 2012-11-05 04:05:26 -0600 |
commit | 333aeb20abc623bb3badae4b09ca8a78bfa2360e (patch) | |
tree | 1c12afc2a969be61316af150e446d72c3ef6e298 /sboconfig | |
parent | ca4560befa9477822940c8cfb0a2378171acb2ee (diff) | |
download | sbotools2-333aeb20abc623bb3badae4b09ca8a78bfa2360e.tar.xz |
get rid of prototype for config_write. all tests pass
Diffstat (limited to 'sboconfig')
-rwxr-xr-x | sboconfig | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |