Use pwd instead of realpath for macos

Closes https://github.com/protocolbuffers/protobuf/issues/10567

PiperOrigin-RevId: 512750155
pull/12042/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent b82232fbcb
commit 0a480ad51a
  1. 4
      php/generate_descriptor_protos.sh

@ -6,11 +6,11 @@
set -e
if [[ -z "${PROTOC}" ]]; then
PROTOC=$(realpath protoc)
PROTOC=$(pwd)/protoc
fi
if [ ! -f $PROTOC ]; then
${BAZEL:-bazel} $BAZEL_STARTUP_FLAGS build -c opt //:protoc $BAZEL_FLAGS
PROTOC=$(realpath bazel-bin/protoc)
PROTOC=$(pwd)/bazel-bin/protoc
fi
if test ! -e src/google/protobuf/stubs/common.h; then

Loading…
Cancel
Save