Skip to content

Fix library add ios with spaces in path #457

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
May 5, 2015

Conversation

jasssonpet
Copy link
Contributor

Fixes #459 in the CLI

@ns-bot
Copy link

ns-bot commented May 4, 2015

@@ -230,7 +230,7 @@ class IOSProjectService implements IPlatformProjectService {
this.$errors.failWithoutHelp("The bundle at %s does not contain an Info.plist file.", libraryPath);
}

var packageType = this.$childProcess.exec('/usr/libexec/PlistBuddy -c "Print :CFBundlePackageType" ' + infoPlistPath).wait().trim();
var packageType = this.$childProcess.exec(util.format('/usr/libexec/PlistBuddy -c "Print :CFBundlePackageType" "%s"', infoPlistPath)).wait().trim();
Copy link

Choose a reason for hiding this comment

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

You can use string interpolation here. It makes the code more readable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice :)

@jasssonpet jasssonpet force-pushed the jasssonpet/library-add-with-spaces branch from 883ae0a to 6c77032 Compare May 4, 2015 11:41
@ns-bot
Copy link

ns-bot commented May 4, 2015

@teobugslayer
Copy link
Contributor

For this to work, you need to use back quotes (`)

@jasssonpet jasssonpet force-pushed the jasssonpet/library-add-with-spaces branch from 6c77032 to aa3292f Compare May 4, 2015 11:46
@ns-bot
Copy link

ns-bot commented May 4, 2015

@Fatme
Copy link
Contributor

Fatme commented May 5, 2015

👍

jasssonpet added a commit that referenced this pull request May 5, 2015
…-spaces

Fix library add ios with spaces in path
@jasssonpet jasssonpet merged commit b7317c8 into master May 5, 2015
@jasssonpet jasssonpet deleted the jasssonpet/library-add-with-spaces branch May 5, 2015 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"library add ios" with spaces in path does not work
5 participants