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

Co-authored-by: Tonye Jack <jtonye@ymail.com>
This commit is contained in:
Brennan Colberg 2023-11-28 08:18:45 -08:00 committed by Tonye Jack
parent f9c5ee3773
commit 5bd0d2eb88

View file

@ -13,7 +13,7 @@ if ! [[ "$INPUT_POSTGRESQL_VERSION" =~ ^[0-9]+$ ]]; then
fi fi
# Check if the input is between 11 and 16 (inclusive) # Check if the input is between 11 and 16 (inclusive)
if (( INPUT_POSTGRESQL_VERSION < 10 || INPUT_POSTGRESQL_VERSION > 16 )); then if (( INPUT_POSTGRESQL_VERSION < 11 || INPUT_POSTGRESQL_VERSION > 16 )); then
echo "Error: $INPUT_POSTGRESQL_VERSION is not between 11 and 16 (inclusive)." echo "Error: $INPUT_POSTGRESQL_VERSION is not between 11 and 16 (inclusive)."
exit 1 exit 1
fi fi