Skip to content

Commit

Permalink
Merge pull request #28 from davglass/node6
Browse files Browse the repository at this point in the history
Fixes #134 - Node6 install support
  • Loading branch information
reid committed Mar 5, 2013
2 parents 96d616a + 0ec0814 commit 361232f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/fetch_deps.js
Expand Up @@ -28,6 +28,8 @@ var YUI_RUNTIME_URL = "http://yui.yahooapis.com/combo?3.7.3/build/yui-base/yui-b
var DOJO_URL = "http://download.dojotoolkit.org/release-1.8.3/dojo.js";
var DOJO_DOH_RUNNER_URL = "http://download.dojotoolkit.org/release-1.8.3/dojo-release-1.8.3/util/doh/runner.js";

var existsSync = fs.existsSync || path.existsSync;

function log() {
if (process.env.npm_config_loglevel !== "silent") {
console.log.apply(null, Array.prototype.slice.call(arguments));
Expand Down Expand Up @@ -136,7 +138,7 @@ function download(err) {
}

scripts.forEach(function downloader(args) {
if (!options.dev && fs.existsSync(path.join(depDir, args[1]))) {
if (!options.dev && existsSync(path.join(depDir, args[1]))) {
return;
}

Expand Down

0 comments on commit 361232f

Please sign in to comment.