Skip to content

Commit

Permalink
install: support custom build tags
Browse files Browse the repository at this point in the history
Needed because of nodejs/node-v0.x-archive#4448.
Closes #176.
  • Loading branch information
mmalecki authored and TooTallNate committed Dec 21, 2012
1 parent 569859e commit fbb514d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.js
Expand Up @@ -60,7 +60,7 @@ function install (gyp, argv, callback) {
}

// 0.x.y-pre versions are not published yet and cannot be installed. Bail.
if (version[5] === '-pre') {
if (version[5] && version[5].match(/\-pre$/)) {
log.verbose('detected "pre" node version', versionStr)
if (gyp.opts.nodedir) {
log.verbose('--nodedir flag was passed; skipping install', gyp.opts.nodedir)
Expand Down

0 comments on commit fbb514d

Please sign in to comment.