From: Fredrik Fornwall Date: Sat, 15 Jul 2017 09:37:17 +0000 (+0200) Subject: run-docker.sh: Work around mac readlink X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/commitdiff_plain/f71de096f6f7240a220cd832571601473229306f run-docker.sh: Work around mac readlink --- diff --git a/scripts/run-docker.sh b/scripts/run-docker.sh index e0400e14..4bbc0037 100755 --- a/scripts/run-docker.sh +++ b/scripts/run-docker.sh @@ -2,7 +2,12 @@ set -e -u HOME=/home/builder -REPOROOT="$(dirname $(readlink -f $0))/../" +if [ `uname` = Darwin ]; then + # Workaround for mac readlink not supporting -f. + REPOROOT=$PWD +else + REPOROOT="$(dirname $(readlink -f $0))/../" +fi IMAGE_NAME=termux/package-builder CONTAINER_NAME=termux-package-builder