Skip to content

Commit 10a092a

Browse files
shivanakofman
authored andcommitted
Script needs to be quoted
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
1 parent 3d2c7f6 commit 10a092a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/add-swift-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const getPlatformVersionsFromFileSystem = (context, projectRoot) => {
194194
const platformVersions = platformsOnFs.map(platform => {
195195
const script = path.join(projectRoot, 'platforms', platform, 'cordova', 'version');
196196
return new Promise((resolve, reject) => {
197-
childProcess.exec(script, {}, (error, stdout, _) => {
197+
childProcess.exec('"' + script + '"', {}, (error, stdout, _) => {
198198
if (error) {
199199
reject(error);
200200
return;

0 commit comments

Comments
 (0)