use cp instead of bash spawn cp

pull/85/head
nightwing 2015-04-30 01:41:33 +04:00
rodzic f8ec16f935
commit 9f4c1b98e1
1 zmienionych plików z 2 dodań i 5 usunięć

Wyświetl plik

@ -308,11 +308,8 @@ define(function(require, exports, module) {
if (process.cwd() == packagePath)
installNPM();
else {
proc.execFile("bash", {
args: [
"-c", "cp -a \"" + join(process.cwd(), "/\"*")
+ " \"" + packagePath + "\""
]
proc.execFile("cp", {
args: ["-R", process.cwd(), dirname(packagePath)]
}, function(err){
if (err) return callback(err);