mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-07-03 04:32:15 +02:00
tools.func: use safe variable expansion in check_for_gh_release RETURN trap
This commit is contained in:
+2
-2
@@ -2647,9 +2647,9 @@ check_for_gh_release() {
|
||||
|
||||
ensure_dependencies jq
|
||||
|
||||
local gh_check_json
|
||||
local gh_check_json=""
|
||||
gh_check_json=$(mktemp /tmp/tools-gh-check-XXXXXX) || return 73
|
||||
trap 'rm -f "$gh_check_json"' RETURN
|
||||
trap 'rm -f "${gh_check_json:-}"' RETURN
|
||||
|
||||
# Build auth header if token is available
|
||||
local header_args=()
|
||||
|
||||
Reference in New Issue
Block a user