Skip to content

Commit

Permalink
OS X does not have realpath (RPi-Distro#342)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
snoe925 authored and alexgg committed Jul 12, 2021
1 parent 072e315 commit 6366c4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ done

IMG_NAME="Raspbian-Fin"
# 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
Expand Down

0 comments on commit 6366c4a

Please sign in to comment.