From 4c73d74c41271cca545bb985145da7fdb62d7b37 Mon Sep 17 00:00:00 2001 From: Developers Digest <124798203+developersdigest@users.noreply.github.com> Date: Wed, 25 Mar 2026 16:02:57 -0400 Subject: [PATCH] fix unbound variable error in install.sh cleanup trap tmp_dir was declared local inside main(), but the EXIT trap fires after main() returns when the local is out of scope. With set -u this causes "unbound variable" on exit. --- scripts/install.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 7756a95..5cc1e45 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -170,7 +170,6 @@ main() { local checksum_url="${base_url}/checksums.txt" # Download to temp directory - local tmp_dir tmp_dir="$(mktemp -d)" trap 'rm -rf "$tmp_dir"' EXIT