From fed07bf3f8769391dd85ea2a6d015c8e8247594e Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Fri, 5 Nov 2021 17:15:27 +0800 Subject: [PATCH] u --- config-debian.sh | 2 ++ install-node.sh | 13 +++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/config-debian.sh b/config-debian.sh index 406b9ec..3dcf4aa 100755 --- a/config-debian.sh +++ b/config-debian.sh @@ -10,8 +10,10 @@ else NewUser=adot fi +echo "<<< Installing basic tools" apt update apt install -y emacs git curl screen sudo automake +echo echo "<<< Making dir /faronear" if [ ! -d "/faronear" ] diff --git a/install-node.sh b/install-node.sh index 3806b9d..a920e7f 100755 --- a/install-node.sh +++ b/install-node.sh @@ -1,17 +1,18 @@ #!/bin/bash echo "Usage: setup.sh [nodeVersion]" -echo "Example: setup.sh 14" + +defaultVersion=16 if [ v$1 != v ] then nodeVersion=$1 else - read -p "Enter node version (leave blank for default 14; 'nvm' for nvm) >> " nodeVersion + read -p "Enter nodejs version (leave blank for default 16; 'nvm' for nvm) >> " nodeVersion if [ ! $nodeVersion ] then - echo Use default node version 14 - nodeVersion=14 + nodeVersion=$defaultVersion + echo Use default node version $nodeVersion fi fi @@ -23,8 +24,8 @@ else echo "######## Installing C++ build tools for Linux ########" sudo apt install curl gcc g++ make -y - echo "######## Installing node v$nodeVersion ########" + echo "######## Installing nodejs v$nodeVersion ########" echo From https://deb.nodesource.com/setup_$nodeVersion.x curl -sL https://deb.nodesource.com/setup_$nodeVersion.x | sudo bash - && sudo apt install nodejs -y - echo "######## node v$nodeVersion installed completely! ##################" + echo "######## nodejs v$nodeVersion installed completely! ##################" fi