0
0
Fork 0
mirror of https://github.com/tj-actions/install-postgresql.git synced 2024-12-20 01:18:18 +00:00

Update entrypoint.sh

This commit is contained in:
Tonye Jack 2023-09-08 04:10:59 -06:00 committed by GitHub
parent 08111940e7
commit f74af2e396
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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