Skip to content

Commit

Permalink
[scripts] ensure that nodejs install has pre_command for sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
davidiw authored and bors-diem committed Feb 18, 2022
1 parent cab87c9 commit ce073cd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,9 @@ function install_xsltproc {

function install_nodejs {
if [[ "$PACKAGE_MANAGER" == "apt-get" ]]; then
curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
apt-get install -y nodejs
else
install_pkg nodejs "$PACKAGE_MANAGER"
curl -fsSL https://deb.nodesource.com/setup_14.x | "${PRE_COMMAND[@]}" bash -
fi
install_pkg nodejs "$PACKAGE_MANAGER"
install_pkg npm "$PACKAGE_MANAGER"
}

Expand Down

0 comments on commit ce073cd

Please sign in to comment.