summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnoe925 <snoe925@gmail.com>2019-11-11 12:23:58 -0600
committerXECDesign <XECDesign@users.noreply.github.com>2019-11-11 18:23:58 +0000
commita449c75facc8b373eab7cf4f884f5a3d45028478 (patch)
tree0951b8f14bb653ee2da3dfb7a4cd9d92e1baa1f8
parent95ba042c8393682eecab36e6c7056a28c5cafed4 (diff)
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.
-rwxr-xr-xbuild-docker.sh4
1 files changed, 3 insertions, 1 deletions
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