summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpinyadmin/sbin/pinyconfig8
1 files changed, 5 insertions, 3 deletions
diff --git a/pinyadmin/sbin/pinyconfig b/pinyadmin/sbin/pinyconfig
index 6466ed7..d6cb795 100755
--- a/pinyadmin/sbin/pinyconfig
+++ b/pinyadmin/sbin/pinyconfig
@@ -88,9 +88,11 @@ if ( not defined $attr ) {
print STDERR "$attr is not a legal tweakable, or $value is not a legal value for that tweakable.\n$@\n";
exit( 4 );
};
- if ( defined $repo and $attr eq "description" and $value ne $repo->description ) {
- print STDERR "Failed to set $attr (perhaps an override is in place)\n";
- exit( 5 );
+ if ( defined $repo and $attr eq "description" ) {
+ if ( $value ne $repo->description ) {
+ print STDERR "Failed to set $attr (perhaps an override is in place)\n";
+ exit( 5 );
+ };
} elsif ( $value ne $config->$attr ) {
print STDERR "Failed to set $attr (perhaps an override is in place)\n";
exit( 5 );