We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75af913 commit adc4d9fCopy full SHA for adc4d9f
1 file changed
scripts/install.sh
@@ -1656,10 +1656,6 @@ ensure_macos_default_node_active() {
1656
return 1
1657
}
1658
1659
-ensure_macos_node22_active() {
1660
- ensure_macos_default_node_active "$@"
1661
-}
1662
-
1663
ensure_default_node_active_shell() {
1664
promote_supported_node_binary || true
1665
if node_is_at_least_required; then
@@ -1890,19 +1886,6 @@ is_root() {
1890
1886
[[ "$(id -u)" -eq 0 ]]
1891
1887
1892
1888
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
1904
1905
1906
1889
require_sudo() {
1907
if [[ "$OS" != "linux" ]]; then
1908
return 0
0 commit comments