From adc4d9fe02af76f0ffc8f8cfdeeb73fd8b662bc1 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Tue, 23 Jun 2026 06:04:21 +0800 Subject: [PATCH] refactor(install): remove stale shell helpers --- scripts/install.sh | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 48083029227..e662a82d780 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1656,10 +1656,6 @@ ensure_macos_default_node_active() { return 1 } -ensure_macos_node22_active() { - ensure_macos_default_node_active "$@" -} - ensure_default_node_active_shell() { promote_supported_node_binary || true if node_is_at_least_required; then @@ -1890,19 +1886,6 @@ is_root() { [[ "$(id -u)" -eq 0 ]] } -# Run a command with sudo only if not already root -maybe_sudo() { - if is_root; then - # Skip -E flag when root (env is already preserved) - if [[ "${1:-}" == "-E" ]]; then - shift - fi - "$@" - else - sudo "$@" - fi -} - require_sudo() { if [[ "$OS" != "linux" ]]; then return 0