Compare commits

..

No commits in common. "1edc07515f3ebbafd6a53b0a3b1bbb0b75b286b8" and "1a7d21b850267a6edfd2459d36e733dd02230e35" have entirely different histories.

2 changed files with 7 additions and 10 deletions

View File

@ -1,6 +1,6 @@
# Easy Install node.js # Easy Install node.js
| Sponsored by [ppl](https://ppl.family) | | Sponsored by [ppl](https://ppl.family) and [Daplie](https://dapliefounder.com).
Automated node.js installers for OS X and Ubuntu Automated node.js installers for OS X and Ubuntu
@ -41,8 +41,8 @@ echo "Current node.js version is $(curl -fsSL https://nodejs.org/dist/index.tab
```bash ```bash
# To install a specific version rather than defaulting to latest # To install a specific version rather than defaulting to latest
# latest version at time of writing are v8.11.1 and v10.1.0 # latest version at time of writing are v8.9.0 and v9.0.0
export NODEJS_VER="v10.1.0" echo "v8.9.0" > /tmp/NODEJS_VER
``` ```
### Choosing an install location ### Choosing an install location

View File

@ -226,13 +226,10 @@ fi
# Which node.js VERSION ? # # Which node.js VERSION ? #
######################### #########################
if [ -z "${NODEJS_VER:-}" ]; then if [ -f "/tmp/NODEJS_VER" ]; then
# For backwards compat
if [ -f "/tmp/NODEJS_VER" ]; then
NODEJS_VER=$(cat /tmp/NODEJS_VER | grep v) NODEJS_VER=$(cat /tmp/NODEJS_VER | grep v)
elif [ -f "/tmp/IOJS_VER" ]; then elif [ -f "/tmp/IOJS_VER" ]; then
NODEJS_VER=$(cat /tmp/IOJS_VER | grep v) NODEJS_VER=$(cat /tmp/IOJS_VER | grep v)
fi
fi fi
if [ -n "$NODEJS_VER" ]; then if [ -n "$NODEJS_VER" ]; then