Skip to content

Commit 2df8c0d

Browse files
authored
Add telemetry stats (#839)
2 parents cca9975 + 1c7ea16 commit 2df8c0d

File tree

5 files changed

+1044
-413
lines changed

5 files changed

+1044
-413
lines changed

generate.sh

+5-7
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ PB=$REPO/protobuf
77

88
export PATH=/opt/.protoc/bin:$PWD/.protoc/bin:$PATH
99

10-
# In some systems like Mac OS 13.0.1, the realpath defaults to
11-
# the system installed one which does not support flags like
12-
# --relative-path. This results in the scripts erroring out.
13-
# The coreutils installed with Homebrew (as mentioned in README)
14-
# installs GNU realpath which could be available as "grealpath"
15-
# which actually works. Hence, the option to customize REALPATH
16-
REALPATH=${REALPATH:-realpath}
10+
REALPATH=${REALPATH:-$(if [[ "$OSTYPE" == "darwin"* ]]; then echo "grealpath"; else echo "realpath"; fi)}
11+
if ! command -v $REALPATH &> /dev/null; then
12+
echo "$REALPATH command not found. Please install it and try again."
13+
exit 1
14+
fi
1715

1816
GEN_PROFILE=${1:-go}
1917

0 commit comments

Comments
 (0)