diff --git a/scripts/dev/download_server b/scripts/dev/download_server index 9cd7f04..97798ed 100644 --- a/scripts/dev/download_server +++ b/scripts/dev/download_server @@ -8,9 +8,9 @@ if [ "$CUSTOM_SERVER_REPO" ]; then echo "$PREFIX Checking for server updates from $CUSTOM_SERVER_REPO" - export GITHUB_API = "https://api.github.com/repos/$CUSTOM_SERVER_REPO/releases/$CUSTOM_SERVER_TAG" - export LATEST_RELEASE_DATE=$(curl -s "$GITHUB_API" | jq -r '.published_at' 2>/dev/null) - export CURRENT_RELEASE_DATE=$(getfattr --only-values -n user.release-date "$CUSTOM_SERVER" 2>/dev/null) + GITHUB_API="https://api.github.com/repos/$CUSTOM_SERVER_REPO/releases/$CUSTOM_SERVER_TAG" + LATEST_RELEASE_DATE=$(curl -s "$GITHUB_API" | jq -r '.published_at' 2>/dev/null) + CURRENT_RELEASE_DATE=$(getfattr --only-values -n user.release-date "$CUSTOM_SERVER" 2>/dev/null) echo "$PREFIX Latest release date: $LATEST_RELEASE_DATE" echo "$PREFIX Current release date: $CURRENT_RELEASE_DATE"