diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-11 22:09:43 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-11 22:09:43 -0700 |
commit | 0c7e2843ae4ae231b10e0ebda5d06fcc431521be (patch) | |
tree | 1ccb49bd1a92724417deb638c8bc4a2f3a493ff7 /pinyadmin | |
parent | 681344f391f6a752cc96210ecb3216c1f4515363 (diff) | |
download | piny-code-0c7e2843ae4ae231b10e0ebda5d06fcc431521be.tar.gz piny-code-0c7e2843ae4ae231b10e0ebda5d06fcc431521be.zip |
Inhibit some tweakables from being in the all-tweakables list, and display
undefined values better.
Diffstat (limited to 'pinyadmin')
-rwxr-xr-x | pinyadmin/sbin/pinyconfig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pinyadmin/sbin/pinyconfig b/pinyadmin/sbin/pinyconfig index 8496cc7..345e53f 100755 --- a/pinyadmin/sbin/pinyconfig +++ b/pinyadmin/sbin/pinyconfig @@ -24,7 +24,12 @@ if ( not defined $attr ) { my $tweakables = $config->all_tweakables; foreach my $t ( sort keys %$tweakables ) { - print "$t => " . $tweakables->{$t} . "\n"; + my $v = $tweakables->{$t}; + if ( defined $v ) { + print "$t => $v\n"; + } else { + print "$t undefined\n"; + }; }; } else { |