From 0f44d8b974d9f7421ba281d6ac358672731449b9 Mon Sep 17 00:00:00 2001 From: Vladimir-A <32281993+Vladimir-A@users.noreply.github.com> Date: Tue, 15 Dec 2020 05:15:57 +0300 Subject: [PATCH] Change: regular expressions. Add [^ -] to exclude duplicate. Example: PostgreSQL 11.9 (Debian 11.9-0+deb10u1) --- INSTALL.debian | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL.debian b/INSTALL.debian index f158d1266..a471b1eeb 100644 --- a/INSTALL.debian +++ b/INSTALL.debian @@ -77,7 +77,7 @@ chsh -s /bin/bash danbooru usermod -G danbooru,sudo danbooru # Set up Postgres -export PG_VERSION=`pg_config --version | egrep -o '[0-9]{1,}\.[0-9]{1,}'` +export PG_VERSION=`pg_config --version | egrep -o '[0-9]{1,}\.[0-9]{1,}[^-]'` if verlte 9.5 $PG_VERSION ; then # only do this on postgres 9.5 and above