aboutsummaryrefslogtreecommitdiff
path: root/sboconfig
diff options
context:
space:
mode:
authorJ Pipkin <j@dawnrazor.net>2012-09-09 00:09:44 -0500
committerJ Pipkin <j@dawnrazor.net>2012-09-09 00:09:44 -0500
commit0d117a624f5ad3f59795bbd8d9802b270df8b466 (patch)
treef56d5d88298420386302724e9d0ef3799eaa1d6a /sboconfig
parent06c3247f55cf5ec1d1c8cd9b67a4852344a86eb6 (diff)
downloadsbotools2-0d117a624f5ad3f59795bbd8d9802b270df8b466.tar.xz
fixes for correction of hash usage in GetOptions
Diffstat (limited to 'sboconfig')
-rwxr-xr-xsboconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/sboconfig b/sboconfig
index d84b482..70120e4 100755
--- a/sboconfig
+++ b/sboconfig
@@ -63,7 +63,7 @@ my %valid_confs = (
my %params = reverse %valid_confs;
-if ($list) {
+if (exists $options{list}) {
my @keys = sort {$a cmp $b} keys %config;
say "sboconfig -$params{$_}:\n $_=$config{$_}" for @keys;
exit 0;
@@ -74,7 +74,7 @@ show_usage and exit 0 unless keys %options > 0;
# setup what's being changed, sanity check.
my %changes;
while (my ($key, $value) = each %valid_confs) {
- $changes{$value} = $settings{$key} if exists $settings{$key};
+ $changes{$value} = $options{$key} if exists $options{$key};
}
my $die = "You have provided an invalid parameter for";