From a449c75facc8b373eab7cf4f884f5a3d45028478 Mon Sep 17 00:00:00 2001 From: snoe925 Date: Mon, 11 Nov 2019 12:23:58 -0600 Subject: [PATCH] OS X does not have realpath (#342) Check that realpath is present. OS X doesn't have realpath. The RPi builds on Docker for Mac if you increase the VM size. I am using 256G for my image. See the Docker for Mac preferences. --- build-docker.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build-docker.sh b/build-docker.sh index 583bf6a..79b68d4 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -31,7 +31,9 @@ do done # Ensure that the configuration file is an absolute path -CONFIG_FILE=$(realpath -s "$CONFIG_FILE") +if test -x /usr/bin/realpath; then + CONFIG_FILE=$(realpath -s "$CONFIG_FILE") +fi # Ensure that the confguration file is present if test -z "${CONFIG_FILE}"; then