mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-22 20:27:19 +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
|
ensure_dependencies jq
|
||||||
|
|
||||||
local gh_check_json
|
local gh_check_json=""
|
||||||
gh_check_json=$(mktemp /tmp/tools-gh-check-XXXXXX) || return 73
|
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
|
# Build auth header if token is available
|
||||||
local header_args=()
|
local header_args=()
|
||||||
|
|||||||
Reference in New Issue
Block a user