Skip to content

Commit

Permalink
Add quotes around build command paths to support spaces. (#14789)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvanhal authored and gziolo committed Apr 6, 2019
1 parent 6cb0b32 commit a9f6a1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/packages/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const chalk = require( 'chalk' );
*/
const getPackages = require( './get-packages' );

const BUILD_CMD = `node ${ path.resolve( __dirname, './build.js' ) }`;
const BUILD_CMD = `node \"${ path.resolve( __dirname, './build.js' ) }\"`;

let filesToBuild = new Map();

Expand Down Expand Up @@ -69,7 +69,7 @@ setInterval( () => {
if ( files.length ) {
filesToBuild = new Map();
try {
execSync( `${ BUILD_CMD } ${ files.join( ' ' ) }`, { stdio: [ 0, 1, 2 ] } );
execSync( `${ BUILD_CMD } \"${ files.join( ' ' ) }\"`, { stdio: [ 0, 1, 2 ] } );
} catch ( e ) {}
}
}, 100 );
Expand Down

0 comments on commit a9f6a1e

Please sign in to comment.