From f71de096f6f7240a220cd832571601473229306f Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Sat, 15 Jul 2017 11:37:17 +0200 Subject: [PATCH] run-docker.sh: Work around mac readlink --- scripts/run-docker.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.11.0