Skip to content

Commit

Permalink
Merge pull request #68 from ricardobarantini/nodejs
Browse files Browse the repository at this point in the history
Installs Node.js 8 and 10
  • Loading branch information
rafaelstz authored Dec 18, 2018
2 parents 577607f + 51bddf4 commit 4d67837
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Just run the following code in the terminal:
```shell
wget -qO- -O simplesh.zip https://github.com/rafaelstz/simplesh/archive/master.zip
unzip simplesh.zip && rm simplesh.zip
cd simplesh-master/
cd simplesh-master/
bash simple.sh
```

Expand All @@ -20,7 +20,7 @@ bash simple.sh
```shell
curl -L https://github.com/rafaelstz/simplesh/archive/master.zip -o simplesh.zip
unzip simplesh.zip && rm simplesh.zip
cd simplesh-master/
cd simplesh-master/
bash simple.sh
```

Expand Down Expand Up @@ -55,6 +55,7 @@ Below is the complete list of commands and applications that are included in Sim
* `gimp.sh` - Install [Gimp](https://www.gimp.org/).
* `googledrive.sh` - Install [Google Drive](https://www.google.com/intl/pt-BR/drive/download/).
* `musique.sh` - Install [Musique Player](http://flavio.tordini.org/musique).
* `nodejs.sh` - Install [Node.js](https://nodejs.org/en/), the JavaScript runtime built on Chrome's V8 JavaScript engine.
* `phpstorm-10.sh`- Install [PHPStorm](http://phonegap.com/) version 10.x.x.
* `phpstorm-9.sh` - Install [PHPStorm](https://goo.gl/suHdH5 ) version 9.x.x.
* `phpstorm.sh` - Install [PHPStorm](https://goo.gl/suHdH5) version 8.x.x.
Expand Down
3 changes: 3 additions & 0 deletions desktop/import.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
# Import Musique
. desktop/musique.sh

# Import Node.js
. desktop/nodejs.sh

# Import PyCharm Community
. desktop/pycharm.sh

Expand Down
40 changes: 40 additions & 0 deletions desktop/nodejs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash
#
# Developed by Ricardo Barantini
# Contact [email protected]
#

nodejs.sh(){
# Show options
echo -e "
${txtblu}
What version you want to install?
${txtrst}
1) Node.js 8
2) Node.js 10
";

# Get value
read version

# Case
case $version in
# Performs the function with the name of the variable passed
1) node8;;
2) node10;;
*) nodejs.sh;;
esac
}

node8() {
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -;
sudo apt-get install -y nodejs;
clear;
}

node10() {
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -;
sudo apt-get install -y nodejs;
clear;
}

0 comments on commit 4d67837

Please sign in to comment.