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:
parent
339a7cc8b3
commit
91010d584c
1 changed files with 4 additions and 4 deletions
|
@ -61,13 +61,13 @@ if [[ -n "$INPUT_POSTGRESQL_VERSION" ]]; then
|
||||||
|
|
||||||
# Verify installation by running pg_dump directly
|
# Verify installation by running pg_dump directly
|
||||||
if [[ "$(uname -s)" == "NT"* ]]; then
|
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
|
# 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
|
else
|
||||||
"/usr/lib/postgresql/15/bin/pg_dump" --version
|
"/usr/lib/postgresql/$INPUT_POSTGRESQL_VERSION/bin/pg_dump" --version
|
||||||
# shellcheck disable=SC2086
|
# 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
|
fi
|
||||||
else
|
else
|
||||||
echo "Running pg_dump..."
|
echo "Running pg_dump..."
|
||||||
|
|
Loading…
Add table
Reference in a new issue