From 26275756e87d80edc070fd4e4b67ec4a1f4cf623 Mon Sep 17 00:00:00 2001 From: Vitalii Budnik Date: Wed, 17 Apr 2024 13:12:24 +0300 Subject: [PATCH] chore: fix unbound variable --- bin/latest-stable | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/latest-stable b/bin/latest-stable index 0b17b50..79b2270 100755 --- a/bin/latest-stable +++ b/bin/latest-stable @@ -10,7 +10,7 @@ plugin_dir=$(dirname "$(dirname "$current_script_path")") curl_opts=(-sI) -GITHUB_API_TOKEN="${GITHUB_API_TOKEN:-${GH_API_TOKEN:-${GITHUB_TOKEN:-${GH_TOKEN}}}}" +GITHUB_API_TOKEN="${GITHUB_API_TOKEN:-${GH_API_TOKEN:-${GITHUB_TOKEN:-${GH_TOKEN:-}}}}" if [ -n "${GITHUB_API_TOKEN:-}" ]; then curl_opts=("${curl_opts[@]}" -H "Authorization: token $GITHUB_API_TOKEN") fi