This is mainly to clean up the empty src directory when fetch fails (otherwise nave_has wrongly determines the source is available on subsequent runs).
I figured I might as well learn how to use arrays at the same time. Also added -f to curl command so it shows "curl: (22) The requested URL returned error: 404" rather than showing progress and passing the 404 page off to tar.
fetch from array of URLs, remove src dir on fail
Don't suppose you'd be interested in rebasing this on master?
Default jobs to 2 everywhere
Re-use build code across install and usemain functions.
fix another easy mistake
Prefer the v1.2.3/node-v1.2.3.tar.gz urls
I hope I did that right, there was far too much hair-pulling and swearing to learn how to do that for the first time! :p
That single patch was better than this mess I think. I must have done something wrong here, I'll try another way to get up to date with master next time. :)