From a21ff37225fd9ea7981c256a7a06c20987652426 Mon Sep 17 00:00:00 2001 From: Kristian Borgwarth <10348902@pm.me> Date: Tue, 9 Jun 2026 23:13:05 +0200 Subject: [PATCH] update install script --- install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 429ff4f..f1049d4 100644 --- a/install.sh +++ b/install.sh @@ -49,8 +49,10 @@ ASSET="${BINARY}-${GOOS}-${GOARCH}" URL="https://github.com/$REPO/releases/download/$TAG/$ASSET" echo "Downloading $ASSET ($TAG)..." -curl -fsSL "$URL" -o "$INSTALL_DIR/$BINARY" -chmod +x "$INSTALL_DIR/$BINARY" +TMP="$(mktemp)" +curl -fsSL "$URL" -o "$TMP" +chmod +x "$TMP" +mv "$TMP" "$INSTALL_DIR/$BINARY" echo "" echo "dendrite $TAG installed to $INSTALL_DIR/$BINARY"