]> granicus.if.org Git - postgis/commitdiff
Revise compute of $scriptdir so allows minors with 0.
authorRegina Obe <lr@pcorp.us>
Sun, 2 Sep 2018 19:03:05 +0000 (19:03 +0000)
committerRegina Obe <lr@pcorp.us>
Sun, 2 Sep 2018 19:03:05 +0000 (19:03 +0000)
Closes #4166

git-svn-id: http://svn.osgeo.org/postgis/trunk@16712 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test.pl

index 9de58cf3b05c60f3ae299c158fec35c1caeb334e..3b4b8c4830677b50d5a107ffc7b7ac265b7e88b6 100755 (executable)
@@ -704,7 +704,7 @@ sub run_simple_test
        if ( $OPT_EXTENSIONS ) {
                # TODO: allow override this default with env variable ?
                my $pgis_majmin = $libver;
-               $pgis_majmin =~ s/^([1-9]*\.[1-9]*).*/\1/;
+               $pgis_majmin =~ s/^([1-9]*\.[0-9]*).*/\1/;
                $scriptdir = `pg_config --sharedir`;
                chop $scriptdir;
                $scriptdir .= "/contrib/postgis-" . $pgis_majmin;