From: Sandro Santilli Date: Wed, 10 Oct 2018 21:09:26 +0000 (+0000) Subject: [proc-upgrade] Don't print more lines after oneliner GRANTs X-Git-Tag: 3.0.0alpha1~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b4f401563d0154056c13a8c2997426f0950cae0;p=postgis [proc-upgrade] Don't print more lines after oneliner GRANTs Fixes #4197 git-svn-id: http://svn.osgeo.org/postgis/trunk@16882 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/utils/postgis_proc_upgrade.pl b/utils/postgis_proc_upgrade.pl index e91a93a0f..f2bc6500b 100755 --- a/utils/postgis_proc_upgrade.pl +++ b/utils/postgis_proc_upgrade.pl @@ -321,10 +321,12 @@ EOF if ( /^grant select\s+(\S+)\s*/i ) { print; - while() - { - print; - last if /\;\s*$/; + if ( ! /\;\s*$/) { + while() + { + print; + last if /\;\s*$/; + } } }