Skip to content

Commit adc4d9f

Browse files
committed
refactor(install): remove stale shell helpers
1 parent 75af913 commit adc4d9f

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

scripts/install.sh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,10 +1656,6 @@ ensure_macos_default_node_active() {
16561656
return 1
16571657
}
16581658

1659-
ensure_macos_node22_active() {
1660-
ensure_macos_default_node_active "$@"
1661-
}
1662-
16631659
ensure_default_node_active_shell() {
16641660
promote_supported_node_binary || true
16651661
if node_is_at_least_required; then
@@ -1890,19 +1886,6 @@ is_root() {
18901886
[[ "$(id -u)" -eq 0 ]]
18911887
}
18921888

1893-
# Run a command with sudo only if not already root
1894-
maybe_sudo() {
1895-
if is_root; then
1896-
# Skip -E flag when root (env is already preserved)
1897-
if [[ "${1:-}" == "-E" ]]; then
1898-
shift
1899-
fi
1900-
"$@"
1901-
else
1902-
sudo "$@"
1903-
fi
1904-
}
1905-
19061889
require_sudo() {
19071890
if [[ "$OS" != "linux" ]]; then
19081891
return 0

0 commit comments

Comments
 (0)