Fix symlink creation issues and add installation verification checks for the installer scripts

This commit is contained in:
kdusek
2025-11-13 17:55:06 +01:00
parent 811f1b800c
commit e2a3cf4c5d
3 changed files with 26 additions and 1 deletions

View File

@@ -409,6 +409,15 @@ install_tea_from_binary() {
# Install the binary with version suffix
$install_cmd "$TEMP_DIR/$binary_name" "$TARGET_DIR/tea-$version"
# Verify installation
if [[ ! -f "$TARGET_DIR/tea-$version" ]]; then
print_error "Failed to install Tea CLI binary"
return 1
fi
# Remove any existing tea symlink or file to avoid conflicts
rm -f "$TARGET_DIR/tea"
# Create/update symlink to point to this version
$symlink_cmd "$TARGET_DIR/tea-$version" "$TARGET_DIR/tea"