diff options
author | J Pipkin <j@dawnrazor.net> | 2012-12-22 18:33:44 -0600 |
---|---|---|
committer | J Pipkin <j@dawnrazor.net> | 2012-12-22 18:33:44 -0600 |
commit | 09d1feb09c1b50726f0d37222456d9bf174bbe0e (patch) | |
tree | d9086b7cbd9c7581c0a880da84a288825f7d83a2 /sboconfig | |
parent | 22b55d4409588ba9661e7fb869a67a7e2d5f59df (diff) | |
parent | b9036db1e5e965dc395d978397e8151ca9ab59fd (diff) | |
download | sbotools2-09d1feb09c1b50726f0d37222456d9bf174bbe0e.tar.xz |
merged slack14 back to master branch
Diffstat (limited to 'sboconfig')
-rwxr-xr-x | sboconfig | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -8,7 +8,7 @@ # author: Jacob Pipkin <j@dawnrazor.net> # license: WTFPL <http://sam.zoy.org/wtfpl/COPYING> -use 5.12.3; +use 5.16.0; use strict; use warnings FATAL => 'all'; use SBO::Lib; @@ -102,6 +102,9 @@ if (exists $changes{SBO_HOME}) { # safely modify our conf file; write its contents to a temp file, modify the # temp file, write the contents of the temp file back to the conf file +# 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 ($$) { exists $_[1] or script_error 'config_write requires two arguments.'; my ($key, $val) = @_; |