diff --git a/Jakefile b/Jakefile index f9de83a18..5cdc4620e 100644 --- a/Jakefile +++ b/Jakefile @@ -42,7 +42,6 @@ filedir ($BUILD_CJS_CAPPUCCINO_DEBUG_FRAMEWORKS, ["debug", "release"], function( }); task ("CommonJS", [$BUILD_CJS_OBJECTIVE_J_DEBUG_FRAMEWORKS, $BUILD_CJS_CAPPUCCINO_DEBUG_FRAMEWORKS, "debug", "release"], function() { - console.log("in commonjs action"); }); task ("install", ["CommonJS"], function() diff --git a/common.jake b/common.jake index 955b6ad9a..35c98ee2c 100644 --- a/common.jake +++ b/common.jake @@ -454,7 +454,7 @@ global.installCopy = function(sourcePath, useSudo) fs.readdirSync(binPath).forEach(function (name) { var prefix = child_process.execSync("npm prefix -g").toString().trim(); - child_process.execSync("sudo ln -sf " + path.join(binPath, name) + " " + path.join(prefix, "bin", name)); + child_process.execSync( (useSudo ? "sudo " : "") + "ln -sf " + path.join(binPath, name) + " " + path.join(prefix, "bin", name)); }); };