Skip to content

Commit 9205ea3

Browse files
Apply suggested fix to start from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent 32bf44a commit 9205ea3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

start

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ esac
248248

249249
if [ $VERSION_CHECK -eq 1 ]; then
250250
# Fetch server version
251-
PGVERSION=$(psql -h "$POSTGRES_HOST" -p "$POSTGRES_PORT" -d "${POSTGRES_DB:-$POSTGRES_DATABASE}" -U "$POSTGRES_USER" -t -A -c 'SHOW server_version_num;')
251+
PGVERSION=$(psql -h "$POSTGRES_HOST" -p "$POSTGRES_PORT" -d "${POSTGRES_DB:-$POSTGRES_DATABASE}" -U "$POSTGRES_USER" -t -A -c 'SHOW server_version_num;') || { >&2 echo "Failed to connect to PostgreSQL to determine server version"; exit 1; }
252252

253253
unset PGPASSWORD
254254

0 commit comments

Comments
 (0)