Skip to content

Commit f573d1f

Browse files
Fix install script kill bug (#52)
1 parent 3ef0b28 commit f573d1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,10 @@ main() {
442442
binary_path="$(extract_archive "${archive_name}" "${tmp_dir}" "${platform}")"
443443

444444
# Copy binary to install directory
445+
# Remove existing binary first to prevent errors related
446+
# to swapping out a currently executing binary
445447
log_info "Installing to ${install_dir}..."
448+
rm -f "${install_dir}/${BINARY_NAME}"
446449
cp "${binary_path}" "${install_dir}/${BINARY_NAME}"
447450

448451
# Verify installation

0 commit comments

Comments
 (0)