Skip to content

Commit

Permalink
Update Install-Node.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
audstanley authored May 16, 2019
1 parent a28d404 commit 2738fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Install-Node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ MAJOR_NODEJS_VERSION=v12
if [ "$EUID" -ne 0 ]
then echo "You need to install as root by using sudo ./Install-Node.sh";
exit
else LINKTONODE=$(curl -sG https://nodejs.org/dist/latest-v12.x/ | awk '{print $2}' | grep -P 'href=\"node-'${MAJOR_NODEJS_VERSION}'\.\d{1,}\.\d{1,}-linux-'$PICHIP'\.tar\.gz' | sed 's/href="//' | sed 's/<\/a>//' | sed 's/">.*//');
else LINKTONODE=$(curl -sG https://nodejs.org/dist/latest-${MAJOR_NODEJS_VERSION}.x/ | awk '{print $2}' | grep -P 'href=\"node-'${MAJOR_NODEJS_VERSION}'\.\d{1,}\.\d{1,}-linux-'$PICHIP'\.tar\.gz' | sed 's/href="//' | sed 's/<\/a>//' | sed 's/">.*//');
# curl -G https://nodejs.org/dist/latest-v11.x/ | awk '{print $2}' | grep -P 'href=\"node-v11\.\d{1,}\.\d{1,}-linux-armv10l\.tar\.gz' | sed 's/href="//' | sed 's/<\/a>//' | sed 's/">.*//'
NODEFOLDER=$(echo $LINKTONODE | sed 's/.tar.gz/\//');
#Next, Creates directory for downloads, and downloads node 8.x
Expand Down

0 comments on commit 2738fda

Please sign in to comment.