Skip to content
This repository was archived by the owner on Oct 10, 2023. It is now read-only.

Commit f018e82

Browse files
Aleksandr KozhemyakinAlexander Lakhin
authored andcommitted
fix grep version from isolationtester
1 parent 98a1d72 commit f018e82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests_install/make_installcheck.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ done <<< "$opts";
148148
# Workaround for incorrect libpq in isolationtester for v14 on altlinux. (PGPRO-5369)
149149
ldlib=""
150150
if grep 'CPE_NAME="cpe:/o:alt:.*:p10"\|ALT Server 9.0\|ALT 8 SP Server' /etc/*-release >/dev/null 2>&1; then
151-
ver=`$1/bin/pg_config --version | grep -oP '\d{2}'`
152-
if [ $ver == 14 ]; then
151+
ver=`$1/bin/pg_config --version | sed -nE "s/[^0-9]+([0-9]+).*/\1/p"`
152+
if [[ ! -z $ver && $ver == 14 ]]; then
153153
ldlib="LD_LIBRARY_PATH=$1/lib:$LD_LIBRARY_PATH"
154154
fi
155155
fi

0 commit comments

Comments
 (0)