|
|
@@ -69,8 +69,8 @@ else
|
|
|
fi
|
|
|
|
|
|
# Get latest avaiable version information from github.
|
|
|
-#AVAILABLE_VERSION=$(curl -fsSL -H 'Accept: application/vnd.github+json' --connect-timeout 5 --max-time 15 "$RELEASEURL" | jq -er 'map(select(.draft == false and .prerelease == false)) | .[0].tag_name' | sed 's/^v//')
|
|
|
AVAILABLE_VERSION=$(curl -fsSL -H 'Accept: application/vnd.github+json' --connect-timeout 5 --max-time 15 "$RELEASEURL" | jq -r '.[] | select(.draft == false and .prerelease == false) | .tag_name' | sed 's/^v//' | sort -V | tail -n1)
|
|
|
+
|
|
|
# Error handling / Evaluate results
|
|
|
if [ -z "$AVAILABLE_VERSION" ]; then
|
|
|
# Issue Warn state when failing to fetch data from GitHub.
|