From a9a78a3a5bb70c243ca0d55319245fb6f549e510 Mon Sep 17 00:00:00 2001 From: Ismail Pelaseyed Date: Fri, 3 Apr 2026 12:07:32 +0200 Subject: [PATCH] fix: resolve tmp_dir unbound variable error in install script (#242) (#243) * fix: resolve tmp_dir unbound variable error in install script (#242) Expand $tmp_dir at trap-definition time so the EXIT trap does not reference a local variable after the function returns under set -u. * bump version --- install.sh | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0ca3cb4..3aa2a68 100644 --- a/install.sh +++ b/install.sh @@ -247,7 +247,7 @@ resolve_release_version() { install_downloaded_release() { local tmp_dir binary_file checksum_file tmp_dir=$(mktemp -d "${TMPDIR:-/tmp}/grok-install.XXXXXX") - trap 'rm -rf "$tmp_dir"' EXIT + trap "rm -rf \"$tmp_dir\"" EXIT binary_file="${tmp_dir}/${ASSET_NAME}" checksum_file="${tmp_dir}/checksums.txt" diff --git a/package.json b/package.json index c42140a..786e675 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grok-dev", - "version": "1.1.4-rc4", + "version": "1.1.4-rc5", "description": "An open-source AI coding agent powered by Grok, built with Bun and OpenTUI.", "type": "module", "main": "dist/index.js",