From d26de19f92fc43e20b4b5f670f0949c5aabd929f Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 16 Dec 2021 11:00:22 +0900 Subject: [PATCH] Fix bug in Postgresql path check --- borg.backup.pgsql.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/borg.backup.pgsql.sh b/borg.backup.pgsql.sh index 032bf66..591ce8a 100755 --- a/borg.backup.pgsql.sh +++ b/borg.backup.pgsql.sh @@ -55,7 +55,7 @@ if [ ! -f "${PG_BASE_PATH}${_PATH_PG_VERSION}/bin/psql" ]; then PG_BASE_PATH='/usr/pgsql-'; if [ ! -f "${PG_BASE_PATH}${_PATH_PG_VERSION}/bin/psql" ]; then PG_BASE_PATH='/usr/lib64/pgsql'; - _PATH_PG_VERSION=$(echo "${PG_VERSION}" | sed -e 's/\.//'): + _PATH_PG_VERSION=$(echo "${PG_VERSION}" | sed -e 's/\.//'); if [ ! -f "${PG_BASE_PATH}${_PATH_PG_VERSION}/bin/psql" ]; then echo "[! $(date +'%F %T')] PostgreSQL not found in any paths"; exit 1;