chore: Updated install script for site build
2f1db7da
1 file(s) · +0 −25
| 197 | 197 | local files=( |
|
| 198 | 198 | ".zshrc" |
|
| 199 | 199 | "config" |
|
| 200 | - | "starship.toml" |
|
| 201 | 200 | ) |
|
| 202 | 201 | ||
| 203 | 202 | local success_count=0 |
|
| 336 | 335 | ||
| 337 | 336 | # Update Homebrew first |
|
| 338 | 337 | print_status "Updating Homebrew..." |
|
| 339 | - | brew update || print_warning "Homebrew update failed, continuing anyway..." |
|
| 340 | 338 | ||
| 341 | 339 | # Install regular packages |
|
| 342 | 340 | for package in "${packages[@]}"; do |
|
| 406 | 404 | } || print_warning "Failed to backup ghostty config" |
|
| 407 | 405 | fi |
|
| 408 | 406 | ||
| 409 | - | if [ -f "$HOME/.config/starship.toml" ]; then |
|
| 410 | - | mkdir -p "$backup_dir/.config" |
|
| 411 | - | cp "$HOME/.config/starship.toml" "$backup_dir/.config/" && { |
|
| 412 | - | print_success "Backed up starship.toml to $backup_dir" |
|
| 413 | - | backed_up=true |
|
| 414 | - | } || print_warning "Failed to backup starship.toml" |
|
| 415 | - | fi |
|
| 416 | - | ||
| 417 | 407 | if [ "$backed_up" = false ]; then |
|
| 418 | 408 | print_status "No existing configuration files to backup" |
|
| 419 | 409 | rmdir "$backup_dir" 2>/dev/null || true |
|
| 452 | 442 | fi |
|
| 453 | 443 | else |
|
| 454 | 444 | print_error "Ghostty config not found in downloaded files: $TEMP_DIR/config" |
|
| 455 | - | ((install_errors++)) |
|
| 456 | - | fi |
|
| 457 | - | ||
| 458 | - | # Install starship config |
|
| 459 | - | if [ -f "$TEMP_DIR/starship.toml" ]; then |
|
| 460 | - | print_debug "Installing starship config to $HOME/.config/" |
|
| 461 | - | mkdir -p "$HOME/.config" |
|
| 462 | - | if cp "$TEMP_DIR/starship.toml" "$HOME/.config/"; then |
|
| 463 | - | print_success "Installed starship.toml" |
|
| 464 | - | else |
|
| 465 | - | print_error "Failed to install starship.toml" |
|
| 466 | - | ((install_errors++)) |
|
| 467 | - | fi |
|
| 468 | - | else |
|
| 469 | - | print_error "starship.toml not found in downloaded files: $TEMP_DIR/starship.toml" |
|
| 470 | 445 | ((install_errors++)) |
|
| 471 | 446 | fi |
|
| 472 | 447 | ||