Skip to content

Commit 3c7e6a6

Browse files
authored
Merge branch 'main' into murrayju/env-output
2 parents c6244cb + f573d1f commit 3c7e6a6

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)