replace readlink -f with realpath in build scripts

readlink -f doesn't work on OS X
pull/142/head
Mike Lang 5 years ago
parent 520f7821a6
commit 07b93f779c

@ -3,7 +3,7 @@
set -eu
# cd to location of script
cd "$(dirname "$(readlink -f "$0")")"
cd "$(dirname "$(realpath "$0")")"
# Builds the docker images.
# Usage: ./build {COMPONENTS}, or just ./build to build all.

@ -3,7 +3,7 @@
set -eu
# cd to location of script
cd "$(dirname "$(readlink -f "$0")")"
cd "$(dirname "$(realpath "$0")")"
# We generate first, and capture the output, to avoid overwriting the file on error.
# To avoid jsonnet needing to exist locally, we run it in a container.

@ -1,7 +1,7 @@
#!/bin/bash
# cd to location of script
cd "$(dirname "$(readlink -f "$0")")"
cd "$(dirname "$(realpath "$0")")"
TAG=$(git rev-parse --short HEAD)
if [ -n "$(git status --porcelain --untracked-files=no)" ]; then

Loading…
Cancel
Save