From f74af2e396ae2a11a6089484bbd03827e36671f0 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 8 Sep 2023 04:10:59 -0600 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index bedeccc..a439447 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -53,11 +53,12 @@ echo "Verifying installation..." # Verify installation by running pg_dump directly if [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then "/Program Files/PostgreSQL/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" --version - echo "/Program Files/PostgreSQL/$INPUT_POSTGRESQL_VERSION/bin" >> $GITHUB_PATH +elif [[ "$(uname -s)" == "Darwin" ]]; then + "$(brew --prefix postgresql@${INPUT_POSTGRESQL_VERSION})/bin/pg_dump" --version + echo "$(brew --prefix postgresql@${INPUT_POSTGRESQL_VERSION})/bin" >> $GITHUB_PATH else "/usr/lib/postgresql/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" --version - echo "/usr/lib/postgresql/$INPUT_POSTGRESQL_VERSION/bin" >> $GITHUB_PATH fi