Skip to content

Commit c7d11a7

Browse files
authored
fix(tools): add npx to amplify-app and fix typo - fixes #486 (#490)
1 parent 7cab76f commit c7d11a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

AmplifyTools/amplify-tools.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99
export PATH=$PATH:$(npm bin -g)
1010

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

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

0 commit comments

Comments
 (0)