From: Sandro Santilli Date: Wed, 14 Aug 2019 11:06:20 +0000 (+0000) Subject: [check-all-upgrades] Fix handling of bogus commandline X-Git-Tag: 3.0.0beta1~85 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a213c02221f7149d4d0c3a54f631b45c53487e3a;p=postgis [check-all-upgrades] Fix handling of bogus commandline git-svn-id: http://svn.osgeo.org/postgis/trunk@17710 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/check_all_upgrades.sh b/utils/check_all_upgrades.sh index 51c4d8b3e..74d4b46d2 100755 --- a/utils/check_all_upgrades.sh +++ b/utils/check_all_upgrades.sh @@ -1,17 +1,19 @@ #!/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] " >&2 echo "Options:" >&2 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"