diff --git a/README.md b/README.md index ec8a8b5c..8ef16e48 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,9 @@ SwiftUI client applications for iOS, iPadOS and macOS. brew install swift-protobuf ``` - check out the latest protobuf commit from the master branch + ```bash + git submodule update --init + ``` - run: ```bash ./gen_proto.sh diff --git a/gen_protos.sh b/gen_protos.sh index d36fafed..b829095f 100755 --- a/gen_protos.sh +++ b/gen_protos.sh @@ -1,14 +1,14 @@ #!/bin/bash # simple sanity checking for repo -if [ ! -d "../protobufs" ]; then - echo "Please check out the protobuf submodule by running: `git submodule update --init`" +if [ ! -d "./protobufs" ]; then + echo 'Please check out the protobuf submodule by running: `git submodule update --init`' exit fi # simple sanity checking for executable if [ ! -x "$(which protoc)" ]; then - echo "Please install swift-protobuf by running: brew install swift-protobuf" + echo 'Please install swift-protobuf by running: `brew install swift-protobuf`' exit fi