Skip to content

Commit

Permalink
fix(amplify-frontend-ios): pass paths to command options as strings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
josefaidt authored Aug 1, 2023
1 parent 5bf53b8 commit 43f73ab
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 43f73ab

Please sign in to comment.