Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install-node.sh: NODE_FILENAME #352

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion external/node/install-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -e
# See e.g. https://nodejs.org/dist/v8.10.0/SHASUMS256.txt for checksum.
NODE_VERSION=8.10.0
NODE_SHA256=92220638d661a43bd0fee2bf478cb283ead6524f231aabccf14c549ebc2bc338
NODE_DIST=linux-x64 # Choose the correct distribution, e.g armv7l | linux | ...

cd $(dirname $0)
cd ../..
Expand All @@ -31,7 +32,7 @@ verify_checksum () {
}

download_node () {
local NODE_FILENAME="node-v${NODE_VERSION}-linux-x64.tar.xz"
local NODE_FILENAME="node-v${NODE_VERSION}-${NODE_DIST}.tar.xz"
local NODE_URL="https://nodejs.org/dist/v${NODE_VERSION}/${NODE_FILENAME}"
local NODE_ARCHIVE_DEST="/tmp/${NODE_FILENAME}"
echo "Downloading Node v${NODE_VERSION} from ${NODE_URL}"
Expand Down