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
This commit is contained in:
Ismail Pelaseyed authored and GitHub committed 2026-04-03 12:07:32 +02:00
1 parent fa204fe98f
commit a9a78a3a5b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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"
+1 -1
View File
@@ -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",