Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix deploy.js for use on Windows machines with spaces in path by esca…

…ping all arguments to shell commands

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@palm.com)
  • Loading branch information...
commit c3a49650ad03f65e9c270bf95256d94debe38519 1 parent fb50b39
Ben Combee unwiredben authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 tools/deploy.js
8 tools/deploy.js
View
@@ -32,7 +32,7 @@ the `-o` flag).
* `icon.png`, the application icon
* `assets/`holds the static application assets, such as images,
videos... etc.
-
+
*/
// Load dependencies
@@ -76,7 +76,7 @@ var node = process.argv[0],
buildDir = path.resolve(sourceDir, "build"),
name = path.basename(sourceDir),
outDir = path.resolve(sourceDir, 'deploy', name),
- less = true, // LESS compilation, turned on by default
+ less = true, // LESS compilation, turned on by default
verbose = false;
function printUsage() {
@@ -115,7 +115,7 @@ var opt = nopt(/*knownOpts*/ {
"h": "--help",
"?": "--help"
}, process.argv /*args*/, 2 /*slice*/);
-
+
if (opt.help) {
printUsage();
process.exit(1);
@@ -145,7 +145,7 @@ if (verbose) console.log("Using: less=" + less);
// utils
function run(args) {
- var command = args.join(' ');
+ var command = '"' + args.join('" "') + '"';
var report;
if (verbose) console.log("Running: '", command, "' from '", process.cwd(), "'");
report = shell.exec(command, { silent: true });
Please sign in to comment.
Something went wrong with that request. Please try again.