From ce528d8049b56b4bca8f4147a3e23529263af894 Mon Sep 17 00:00:00 2001 From: Vitalii Budnik Date: Wed, 17 Apr 2024 13:18:59 +0300 Subject: [PATCH] chore: fix unbound variable (#2) --- 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