echo"ERROR: Version mismatch or missing version information in $FILE_BASENAME. OUR_VERSION: $OUR_VERSION, MINECRAFT_VERSION: $MINECRAFT_VERSION, EXPECTED VERSION: $VERSION"
exit 1
fi
echo"Preparing to upload $FILE_BASENAME as version $VERSION_NUMBER..."
echo"ERROR: Version mismatch or missing version information in $FILE_BASENAME. OUR_VERSION: $OUR_VERSION, MINECRAFT_VERSION: $MINECRAFT_VERSION, EXPECTED VERSION: $VERSION"
exit 1
fi
# Check if the version already exists
echo"Checking if version $VERSION_NUMBER already exists on Modrinth..."
if curl --silent--fail-X GET "$API_URL/project/creaturechat/version/$VERSION_NUMBER"> /dev/null 2>&1;then