Commit 3a770feb authored by David Dollar's avatar David Dollar

allow older node urls to work

parent ceaa830f
...@@ -34,6 +34,12 @@ cd $tempdir ...@@ -34,6 +34,12 @@ cd $tempdir
# download and extract node # download and extract node
curl http://nodejs.org/dist/v${node_version}/node-v${node_version}.tar.gz -o node.tgz curl http://nodejs.org/dist/v${node_version}/node-v${node_version}.tar.gz -o node.tgz
# try old-style download url if it doesnt exist
if [ "$(grep -i "404 not found" node.tgz)" != "" ]; then
curl http://nodejs.org/dist/node-v${node_version}.tar.gz -o node.tgz
fi
tar xzvf node.tgz tar xzvf node.tgz
# go into node dir # go into node dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment