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