From 9f4c1b98e1c8024bbb532088eff491e9b98ef3c6 Mon Sep 17 00:00:00 2001 From: nightwing Date: Thu, 30 Apr 2015 01:41:33 +0400 Subject: [PATCH] use cp instead of bash spawn cp --- plugins/c9.cli.publish/install.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugins/c9.cli.publish/install.js b/plugins/c9.cli.publish/install.js index c16de698..ae1b1012 100644 --- a/plugins/c9.cli.publish/install.js +++ b/plugins/c9.cli.publish/install.js @@ -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);