Skip to content
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

fix(amplify-frontend-ios): encapsulate path option values with quotes #12596

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/amplify-frontend-ios/lib/amplify-xcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const amplifyXcodePath = () => path.join(pathManager.getAmplifyPackageLibDirPath
async function importConfig(params) {
let command = `${amplifyXcodePath()} import-config`;
if (params['path']) {
command += ` --path=${params['path']}`;
command += ` --path="${params['path']}"`;
}
await execa.command(command, { stdout: 'inherit' });
}
Expand All @@ -46,7 +46,7 @@ async function importConfig(params) {
async function importModels(params) {
let command = `${amplifyXcodePath()} import-models`;
if (params['path']) {
command += ` --path=${params['path']}`;
command += ` --path="${params['path']}"`;
}
await execa.command(command, { stdout: 'inherit' });
}
Expand All @@ -59,7 +59,7 @@ async function importModels(params) {
async function generateSchema(params) {
let command = `${amplifyXcodePath()} generate-schema`;
if (params['output-path']) {
command += ` --output-path=${params['output-path']}`;
command += ` --output-path="${params['output-path']}"`;
}
await execa.command(command, { stdout: 'inherit' });
}
Expand Down