[postgis-tickets] r17710 - [check-all-upgrades] Fix handling of bogus commandline

Sandro Santilli strk at kbt.io
Wed Aug 14 04:06:20 PDT 2019


Author: strk
Date: 2019-08-14 04:06:20 -0700 (Wed, 14 Aug 2019)
New Revision: 17710

Modified:
   trunk/utils/check_all_upgrades.sh
Log:
[check-all-upgrades] Fix handling of bogus commandline

Modified: trunk/utils/check_all_upgrades.sh
===================================================================
--- trunk/utils/check_all_upgrades.sh	2019-08-14 11:06:13 UTC (rev 17709)
+++ trunk/utils/check_all_upgrades.sh	2019-08-14 11:06:20 UTC (rev 17710)
@@ -1,5 +1,12 @@
 #!/bin/sh
 
+EXIT_ON_FIRST_FAILURE=0
+
+if test "$1" = "-s"; then
+  EXIT_ON_FIRST_FAILURE=1
+  shift
+fi
+
 if test -z "$1"; then
   echo "Usage: $0 [-s] <to_version>" >&2
   echo "Options:" >&2
@@ -6,12 +13,7 @@
   echo "\t-s  Stop on first failure" >&2
   exit 1
 fi
-EXIT_ON_FIRST_FAILURE=0
 
-if test "$1" = "-s"; then
-  EXIT_ON_FIRST_FAILURE=1
-  shift
-fi
 to_version="$1"
 
 



More information about the postgis-tickets mailing list