Skip to content

Commit

Permalink
Script needs to be quoted
Browse files Browse the repository at this point in the history
Fixes:
'{' Error: Command failed: /Users/../jenkins/workspace/My App With Blanks in Name/app/cordova/platforms/android/cordova/version
[INF] [shellscript] /bin/sh: /Users/../jenkins/workspace/My: No such file or directory
  • Loading branch information
shivan authored and akofman committed Apr 5, 2019
1 parent 3d2c7f6 commit 10a092a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/add-swift-support.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const getPlatformVersionsFromFileSystem = (context, projectRoot) => {
const platformVersions = platformsOnFs.map(platform => {
const script = path.join(projectRoot, 'platforms', platform, 'cordova', 'version');
return new Promise((resolve, reject) => {
childProcess.exec(script, {}, (error, stdout, _) => {
childProcess.exec('"' + script + '"', {}, (error, stdout, _) => {
if (error) {
reject(error);
return;
Expand Down

0 comments on commit 10a092a

Please sign in to comment.