[Rt-commit] r13438 - rt/3.8/trunk/sbin

ruz at bestpractical.com ruz at bestpractical.com
Thu Jun 19 19:09:48 EDT 2008


Author: ruz
Date: Thu Jun 19 19:09:47 2008
New Revision: 13438

Modified:
   rt/3.8/trunk/sbin/rt-setup-database.in

Log:
* actually test return value of yesno function

Modified: rt/3.8/trunk/sbin/rt-setup-database.in
==============================================================================
--- rt/3.8/trunk/sbin/rt-setup-database.in	(original)
+++ rt/3.8/trunk/sbin/rt-setup-database.in	Thu Jun 19 19:09:47 2008
@@ -292,7 +292,7 @@
     print map "* $_\n", @versions;
 
     print "HI THERE IT'S VERY IMPORTANT TO BACK UP BEFORE THIS STEP\n\n";
-    _yesno() unless $args{'force'};
+    _yesno() or exit(-2) unless $args{'force'};
 
     foreach my $v ( @versions ) {
         print "Processing $v\n";


More information about the Rt-commit mailing list