[Rt-commit] r19543 - in rt/3.999/trunk: .

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu May 7 03:31:08 EDT 2009


Author: sunnavy
Date: Thu May  7 03:31:08 2009
New Revision: 19543

Modified:
   rt/3.999/trunk/   (props changed)
   rt/3.999/trunk/sbin/rt-update-config

Log:
 r20884 at sunnavys-mb (orig r19331):  sunnavy | 2009-04-23 09:59:24 +0800
 improve a bit, sartak++


Modified: rt/3.999/trunk/sbin/rt-update-config
==============================================================================
--- rt/3.999/trunk/sbin/rt-update-config	(original)
+++ rt/3.999/trunk/sbin/rt-update-config	Thu May  7 03:31:08 2009
@@ -63,8 +63,8 @@
 
 # so we can run: $0 rtname example.com
 if ( @ARGV ) {
-    $args{name} ||= shift;
-    $args{value} ||= shift;
+    $args{name} = shift unless defined $args{name};
+    $args{value} = shift unless defined $args{value};
 }
 
 # XXX currently, $args{value} only supports string values.


More information about the Rt-commit mailing list