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:23:04 -06:00 committed by GitHub
parent fd0ab4f395
commit 3baac232ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ if [[ "$(uname -s)" == "Linux" ]]; then
# Install PostgreSQL
sudo apt-get install -y "postgresql-$INPUT_POSTGRESQL_VERSION"
elif [[ "$(uname -s)" == "NT"* ]] || [[ "$(uname -s)" == "MINGW"* ]] || [[ "$(uname -s)" == *"MSYS"* ]]; then
choco install postgresql --version="$INPUT_POSTGRESQL_VERSION" -y --source chocolatey
choco install "postgresql$INPUT_POSTGRESQL_VERSION" -y
elif [[ "$(uname -s)" == "Darwin" ]]; then
brew update
brew install "postgresql@$INPUT_POSTGRESQL_VERSION"