run-docker.sh: Work around mac readlink

This commit is contained in:
Fredrik Fornwall 2017-07-15 11:37:17 +02:00
parent 09c5e72a9a
commit bf74a80eac

View File

@ -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