From 527f4bbdaeae7f38ef1c191fc5ad8a45c42bb07b Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Sun, 2 Sep 2018 19:03:05 +0000 Subject: [PATCH] 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 --- regress/run_test.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.40.0