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

Update entrypoint.sh

This commit is contained in:
Tonye Jack 2023-09-07 20:22:38 -06:00 committed by GitHub
parent 339a7cc8b3
commit 91010d584c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,13 +61,13 @@ if [[ -n "$INPUT_POSTGRESQL_VERSION" ]]; then
# Verify installation by running pg_dump directly
if [[ "$(uname -s)" == "NT"* ]]; then
"/Program Files/PostgreSQL/15/bin/pg_dump" --version
"/Program Files/PostgreSQL/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" --version
# shellcheck disable=SC2086
"/Program Files/PostgreSQL/15/bin/pg_dump" $INPUT_OPTIONS -d "$INPUT_DATABASE_URL" > "$INPUT_PATH"
"/Program Files/PostgreSQL/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" $INPUT_OPTIONS -d "$INPUT_DATABASE_URL" > "$INPUT_PATH"
else
"/usr/lib/postgresql/15/bin/pg_dump" --version
"/usr/lib/postgresql/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" --version
# shellcheck disable=SC2086
"/usr/lib/postgresql/15/bin/pg_dump" $INPUT_OPTIONS -d "$INPUT_DATABASE_URL" > "$INPUT_PATH"
"/usr/lib/postgresql/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" $INPUT_OPTIONS -d "$INPUT_DATABASE_URL" > "$INPUT_PATH"
fi
else
echo "Running pg_dump..."