Sfoglia il codice sorgente

Install git and vim before cloning repo

Fixes "git: command not found" error on fresh Pi installs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
tuanchris 1 mese fa
parent
commit
1e04f84dbf
1 ha cambiato i file con 9 aggiunte e 0 eliminazioni
  1. 9 0
      setup-pi.sh

+ 9 - 0
setup-pi.sh

@@ -82,6 +82,14 @@ print_success() {
     echo -e "${GREEN}$1${NC}"
 }
 
+# Install essential packages (git, vim)
+install_essentials() {
+    print_step "Installing essential packages..."
+    sudo apt update
+    sudo apt install -y git vim
+    print_success "Essential packages installed"
+}
+
 # Check if running on Raspberry Pi
 check_raspberry_pi() {
     print_step "Checking system compatibility..."
@@ -358,6 +366,7 @@ main() {
 
     # Run setup steps
     check_raspberry_pi
+    install_essentials
     ensure_repo
     update_system
     disable_wlan_powersave