Allowed FTB_MODPACK_VERSION_ID to be an empty value

#1081
This commit is contained in:
Geoff Bourne
2021-10-23 09:40:36 -05:00
parent e20dd63f76
commit 2e8f27a8ef
2 changed files with 5 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ if ! [[ ${FTB_MODPACK_ID} =~ [0-9]+ ]]; then
exit 1
fi
if ! [[ -v FTB_MODPACK_VERSION_ID ]]; then
if [[ ! $FTB_MODPACK_VERSION_ID ]]; then
if ! FTB_MODPACK_VERSION_ID=$(curl -fsSL https://api.modpacks.ch/public/modpack/${FTB_MODPACK_ID} | jq -r '.versions | sort_by(.updated)[-1].id'); then
log "ERROR unable to resolve latest modpack version ID for modpack ${FTB_MODPACK_ID}"
exit 1