From 2b9bb37eb7cd8b19ab904a62a438b9c328bdd2ad Mon Sep 17 00:00:00 2001 From: Michael Ramos Date: Tue, 20 Jan 2026 16:06:53 -0800 Subject: [PATCH] fix: explicitly delete old binary before install Helps Windows users running bash script who were stuck on old versions. The mv command may not overwrite properly on Windows due to file locking or .exe extension mismatch. Co-Authored-By: Claude Opus 4.5 --- scripts/install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index fb3b9a8..0b95c74 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -51,6 +51,9 @@ if [ "$actual_checksum" != "$expected_checksum" ]; then exit 1 fi +# Remove old binary first (handles Windows .exe and locked file issues) +rm -f "$INSTALL_DIR/plannotator" "$INSTALL_DIR/plannotator.exe" 2>/dev/null || true + mv "$tmp_file" "$INSTALL_DIR/plannotator" chmod +x "$INSTALL_DIR/plannotator" -- knotmirror 0.0.1