From: Regina Obe Date: Sun, 2 Sep 2018 19:03:05 +0000 (+0000) Subject: Revise compute of $scriptdir so allows minors with 0. X-Git-Tag: 3.0.0alpha1~470 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=527f4bbdaeae7f38ef1c191fc5ad8a45c42bb07b;p=postgis Revise compute of $scriptdir so allows minors with 0. Closes #4166 git-svn-id: http://svn.osgeo.org/postgis/trunk@16712 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/run_test.pl b/regress/run_test.pl index 9de58cf3b..3b4b8c483 100755 --- a/regress/run_test.pl +++ b/regress/run_test.pl @@ -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;