]> granicus.if.org Git - postgis/commitdiff
Not all args with a dash are options, only those starting with one
authorSandro Santilli <strk@keybit.net>
Sat, 25 May 2013 18:14:12 +0000 (18:14 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 25 May 2013 18:14:12 +0000 (18:14 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11501 b70326c6-7e19-0410-871a-916f4a2858ee

utils/postgis_restore.pl.in

index 1ee1c6180e78fc23b05c628acb449dc258445e6e..aaafdc4ad702c4c08f4b3896977510c5ddbe389f 100755 (executable)
@@ -58,7 +58,7 @@ my $POSTGIS_SCHEMA;
 my $SRID_MAXIMUM = @SRID_MAXIMUM@;
 my $SRID_USER_MAXIMUM = @SRID_USER_MAXIMUM@; 
 
-while (@ARGV && $ARGV[0] =~ /-/) {
+while (@ARGV && $ARGV[0] =~ /^-/) {
   my $arg = shift(@ARGV);
   if ( $arg eq '-v' ) {
     $DEBUG = 1;