Skip to content

Use spawn wherever possible #1458

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2016
Merged

Conversation

Mitko-Kerezov
Copy link
Contributor

Wherever possible use spawn instead of exec.
This minifies the chance of something going wrong wherever there are spaces, quotation marks and whatnots in the project's name.
Addresses #1455
Ping @rosen-vladimirov @teobugslayer

@Mitko-Kerezov Mitko-Kerezov self-assigned this Feb 8, 2016
@Mitko-Kerezov Mitko-Kerezov added this to the 1.6.0 milestone Feb 8, 2016
@@ -268,7 +268,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
let project = this.createPbxProj();
let frameworkName = path.basename(frameworkPath, path.extname(frameworkPath));
let frameworkBinaryPath = path.join(frameworkPath, frameworkName);
let isDynamic = _.contains(this.$childProcess.exec(`otool -Vh ${frameworkBinaryPath}`).wait(), " DYLIB ");
let isDynamic = _.contains(this.$childProcess.exec(`otool -Vh "${frameworkBinaryPath}"`).wait(), " DYLIB ");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if it already has "

@ghost ghost force-pushed the kerezov/quote-framework branch 2 times, most recently from 37f5e73 to 0a61d4a Compare February 8, 2016 12:23
@Mitko-Kerezov Mitko-Kerezov changed the title Quote dynamic framework path Use spawn wherever possible Feb 8, 2016
@ghost ghost force-pushed the kerezov/quote-framework branch from 0a61d4a to 72b6965 Compare February 8, 2016 12:36
Wherever possible use `spawn` instead of `exec`.
This minifies the chance of something going wrong wherever there are spaces, quotation marks and whatnots in the project's name.
Addresses #1455
@rosen-vladimirov
Copy link
Contributor

👍 great

Mitko-Kerezov added a commit that referenced this pull request Feb 8, 2016
@Mitko-Kerezov Mitko-Kerezov merged commit c1ecc57 into master Feb 8, 2016
@Mitko-Kerezov Mitko-Kerezov deleted the kerezov/quote-framework branch February 8, 2016 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants