diff --git a/install-pi.sh b/install-pi.sh index 13c60c7..c8b457c 100755 --- a/install-pi.sh +++ b/install-pi.sh @@ -70,6 +70,12 @@ ensure_brew() { success "Homebrew installed" } +# ──────────────────────────────────────────── +# Detect OS / Architecture +# ──────────────────────────────────────────── +OS="$(uname -s)" +ARCH="$(uname -m)" + # ──────────────────────────────────────────── # Check required commands # ──────────────────────────────────────────── @@ -120,11 +126,8 @@ fi info "npm is available: $(command -v npm)" # ──────────────────────────────────────────── -# Detect OS / Architecture +# Detect OS / Architecture (already set above) # ──────────────────────────────────────────── -OS="$(uname -s)" -ARCH="$(uname -m)" - case "$OS" in Darwin | Linux) ;; *)