From 21c6cd0e81b7a9c5487f6945dd73087213c0fd37 Mon Sep 17 00:00:00 2001 From: Kris Nova <kris@nivenly.com> Date: Thu, 11 Jan 2018 12:37:37 -0800 Subject: [PATCH] Removing realpath Darwin operating systems does not ship with `realpath` so using another working variation Signed-off-by: Kris Nova <knova@heptio.com> --- docs/generate/update-generated-docs.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/generate/update-generated-docs.sh b/docs/generate/update-generated-docs.sh index c0f7d4f5..2fda1543 100755 --- a/docs/generate/update-generated-docs.sh +++ b/docs/generate/update-generated-docs.sh @@ -14,7 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -KSONNET_ROOT=$(realpath $(dirname ${BASH_SOURCE})/../..) +KSONNET_ROOT=$(cd "$(dirname "$0")/../.."; pwd) + BIN=${KSONNET_ROOT}/_output/bin mkdir -p ${BIN} go build -o ${BIN}/docs-gen ./docs/generate/ks.go -- GitLab