From 36ba2e4508aaed402b270530e0b2c6a3dca566db Mon Sep 17 00:00:00 2001 From: Matthew Davies Date: Thu, 28 Mar 2024 21:31:37 -0700 Subject: [PATCH] Update readme to include better info about protos submodule init Update gen_protos.sh to check the proper directory and echo the command --- README.md | 3 +++ gen_protos.sh | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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