From 637a92578afc46570c77706d6dd9cd4f797dc2bb Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 31 Oct 2024 15:45:21 -0400 Subject: [PATCH] forcejo: fix bad if statement --- .forgejo/bin/check_ver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/bin/check_ver.sh b/.forgejo/bin/check_ver.sh index 799c44f..1b2d471 100755 --- a/.forgejo/bin/check_ver.sh +++ b/.forgejo/bin/check_ver.sh @@ -14,7 +14,7 @@ echo "Found $(printf '%s\n' $owned_by_you | wc -l ) packages owned by you" rm -f out_of_date not_in_anitya for pkg in $owned_by_you; do - if $CHECK_LATEST; then + if [ $CHECK_LATEST -eq 1 ]; then upstream_version=$(curl --fail -X GET -sS -H 'Content-Type: application/json' "https://release-monitoring.org/api/v2/packages/?name=$pkg&distribution=Alpine" | jq -r '.items.[].version') else upstream_version=$(curl --fail -X GET -sS -H 'Content-Type: application/json' "https://release-monitoring.org/api/v2/packages/?name=$pkg&distribution=Alpine" | jq -r '.items.[].stable_version')