Skip to content

Commit

Permalink
fix(tools): add npx to amplify-app and fix typo - fixes #486 (#490)
Browse files Browse the repository at this point in the history
  • Loading branch information
drochetti authored May 26, 2020
1 parent 7cab76f commit c7d11a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AmplifyTools/amplify-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ set -e
export PATH=$PATH:$(npm bin -g)

if ! which node >/dev/null; then
echo "warning: Node is not installed. Vist https://nodejs.org/en/download/ to install it"
echo "warning: Node is not installed. Visit https://nodejs.org/en/download/ to install it"
exit 1
elif ! test -f ./amplifytools.xcconfig; then
npx amplify-app --platform ios
Expand All @@ -28,7 +28,7 @@ if $amplifyModelgen; then
echo "modelgen is set to true, generating Swift models from schema.graphql..."
amplify codegen model
# calls amplify-app again so the Xcode project is updated with the generated models
amplify-app --platform ios
npx amplify-app --platform ios
fi

if [ -z "$amplifyAccessKey" ] || [ -z "$amplifySecretKey" ] || [ -z "$amplifyRegion" ]; then
Expand Down

0 comments on commit c7d11a7

Please sign in to comment.