diff --git a/mybashrc b/mybashrc index bcc92e6..449de56 100644 --- a/mybashrc +++ b/mybashrc @@ -315,12 +315,11 @@ _INSTALL_NODEJS() { echo "Example : setup-nodejs 12" else wget -O nodejs.sh https://deb.nodesource.com/setup_"$1".x + chmod +x nodejs.sh + ./nodejs.sh + rm -f nodejs.sh + $NEED_SUDO apt-get install -y nodejs fi - chmod +x nodejs.sh - ./nodejs.sh - rm -f nodejs.sh - $NEED_SUDO apt-get install -y nodejs - } _UPDATE_NPM() {