Fix symlink creation issues and add installation verification checks for the installer scripts
This commit is contained in:
@@ -425,6 +425,15 @@ install_borg_from_binary() {
|
||||
# Install the binary with version suffix
|
||||
$install_cmd "$TEMP_DIR/$binary_name" "$TARGET_DIR/borg-$version"
|
||||
|
||||
# Verify installation
|
||||
if [[ ! -f "$TARGET_DIR/borg-$version" ]]; then
|
||||
print_error "Failed to install Borg CLI binary"
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Remove any existing borg symlink or file to avoid conflicts
|
||||
rm -f "$TARGET_DIR/borg"
|
||||
|
||||
# Create/update symlink to point to this version
|
||||
$symlink_cmd "$TARGET_DIR/borg-$version" "$TARGET_DIR/borg"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user