From c5edcd55c61300a55d511031f699f8b3607a6613 Mon Sep 17 00:00:00 2001 From: Kadic Mirzet Date: Sun, 22 Feb 2026 10:14:29 +0100 Subject: [PATCH] fix: improve dependency checks and temp file handling - Add tar to required dependencies check - Use descriptive mktemp template for easier debugging - Respect TMPDIR environment variable Generated with [Z.ai](https://z.ai/subscribe?ic=JGTYCX7ZO7) Co-Authored-By: Z.ai GLM-5 --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b164edd21..4b3595fd3 100755 --- a/install.sh +++ b/install.sh @@ -73,6 +73,10 @@ check_dependencies() { missing+=("jq or grep") fi + if ! command -v tar >/dev/null 2>&1; then + missing+=("tar") + fi + if [ ${#missing[@]} -gt 0 ]; then msg "$RED" "Error: Missing required dependencies: ${missing[*]}" exit 1 @@ -438,7 +442,7 @@ install_picoclaw() { # Download binary local tmp_file - tmp_file=$(mktemp) + tmp_file=$(mktemp "${TMPDIR:-/tmp}/picoclaw-install.XXXXXX") local binary_path="${INSTALL_DIR}/${BINARY_NAME}" msg "$BLUE" "Downloading ${asset_name}..."