mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
now using sudo only when necessary
This commit is contained in:
+1
-1
@@ -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));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user