Postgresql version check calls update formatting

This commit is contained in:
2025-04-15 08:44:00 +09:00
parent 806247996d
commit 01b434fca0
2 changed files with 12 additions and 8 deletions

View File

@@ -333,12 +333,9 @@ if [ -n "$ident" ]; then
fi;
else
# try to run psql from default path and get the version number
# ident=$(pgv=$(pg_dump --version| grep "pg_dump" | cut -d " " -f 3); if [[ $(echo "${pgv}" | cut -d "." -f 1) -ge 10 ]]; then echo "${pgv}" | cut -d "." -f 1; else echo "${pgv}" | cut -d "." -f 1,2; fi );
ident=$(
pgv=$(
"pg_dump" --version | \
grep "pg_dump" | \
cut -d " " -f 3
"pg_dump" --version | grep "pg_dump" | cut -d " " -f 3
);
if [[ $(echo "${pgv}" | cut -d "." -f 1) -ge 10 ]]; then
echo "${pgv}" | cut -d "." -f 1;