We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 538af44 commit aa76a35Copy full SHA for aa76a35
1 file changed
server_linux_install.sh
@@ -665,6 +665,14 @@ if ! curl -fL --retry 3 --retry-delay 2 --connect-timeout 15 -o "$ZIP_PATH" "$UR
665
fi
666
667
[[ -s "$ZIP_PATH" ]] || log_error "Downloaded archive is missing or empty: $ZIP_PATH"
668
+
669
+# Remove old binaries with the same prefix so executable selection is deterministic.
670
+shopt -s nullglob
671
+for old_bin in ${PREFIX}_v*; do
672
+ rm -f -- "$old_bin"
673
+done
674
+shopt -u nullglob
675
676
unzip -q -o "$ZIP_PATH" -d "$INSTALL_DIR" || log_error "Failed to extract archive."
677
log_success "Files extracted."
678
0 commit comments