diff --git a/build b/build index 24e80f0..13d2e07 100755 --- a/build +++ b/build @@ -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. diff --git a/generate-docker-compose b/generate-docker-compose index b30a62a..56365c7 100755 --- a/generate-docker-compose +++ b/generate-docker-compose @@ -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. diff --git a/get-build-tag b/get-build-tag index 95cc564..4afc4c5 100755 --- a/get-build-tag +++ b/get-build-tag @@ -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