chore: Small changes to prints in install.sh
f139b9c2
1 file(s) · +2 −10
| 82 | 82 | print_error "curl is not installed. Please install it first." |
|
| 83 | 83 | exit 1 |
|
| 84 | 84 | fi |
|
| 85 | - | print_success "curl found at: $(which curl)" |
|
| 86 | - | ||
| 87 | - | print_debug "Checking curl version..." |
|
| 88 | - | curl --version | head -1 |
|
| 89 | 85 | } |
|
| 90 | 86 | ||
| 91 | 87 | # Create temporary directory for downloads |
|
| 206 | 202 | ||
| 207 | 203 | for file in "${files[@]}"; do |
|
| 208 | 204 | print_debug "=== Processing file $((success_count + 1))/$total_files: $file ===" |
|
| 209 | - | print_status "Attempting to download: $file" |
|
| 210 | 205 | ||
| 211 | 206 | # Disable error exit temporarily for this specific operation |
|
| 212 | 207 | set +e |
|
| 259 | 254 | mkdir -p "$TEMP_DIR/assets" |
|
| 260 | 255 | font_dest="$TEMP_DIR/assets/$font_filename" |
|
| 261 | 256 | ||
| 262 | - | if curl -L -f -s -w "HTTP_CODE:%{http_code};SIZE:%{size_download}" -o "$font_dest" "$font_url" 2>/dev/null; then |
|
| 257 | + | if curl -L -f -s -o "$font_dest" "$font_url" 2>/dev/null; then |
|
| 263 | 258 | local file_size=$(wc -c < "$font_dest" 2>/dev/null || echo "0") |
|
| 264 | 259 | print_success "Downloaded CommitMono Nerd Font (${file_size} bytes)" |
|
| 265 | 260 | ||
| 334 | 329 | local cask_packages=( |
|
| 335 | 330 | "ghostty" |
|
| 336 | 331 | ) |
|
| 337 | - | ||
| 338 | - | # Update Homebrew first |
|
| 339 | - | print_status "Updating Homebrew..." |
|
| 340 | 332 | ||
| 341 | 333 | # Install regular packages |
|
| 342 | 334 | for package in "${packages[@]}"; do |
|
| 595 | 587 | ||
| 596 | 588 | check_dependencies |
|
| 597 | 589 | setup_temp_dir |
|
| 590 | + | install_packages |
|
| 598 | 591 | test_github_connection |
|
| 599 | 592 | download_configs |
|
| 600 | 593 | download_and_install_font |
|
| 601 | - | install_packages |
|
| 602 | 594 | backup_configs |
|
| 603 | 595 | install_configs |
|
| 604 | 596 | set_default_shell |
|