From 80af66e8648314ac6b5eb07b1f0ba4a3ce89b3f4 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Wed, 1 Jul 2026 22:35:15 +0200 Subject: [PATCH] tools.func: use safe variable expansion in check_for_gh_release RETURN trap (#15529) --- misc/tools.func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/tools.func b/misc/tools.func index af6a18c12..d3238bd7e 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -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=()