Skip to content

Commit

Permalink
BusyBox realpath does not support -s flag, fallback to use no flags (R…
Browse files Browse the repository at this point in the history
…Pi-Distro#384)

* BusyBox realpath does not support -s flag, fallback to use no flags

* Fix config sourcing problem
  • Loading branch information
timvisee authored and alexgg committed Jul 12, 2021
1 parent e7d22bd commit 66db5e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ done
IMG_NAME="Raspbian-Fin"
# Ensure that the configuration file is an absolute path
if test -x /usr/bin/realpath; then
CONFIG_FILE=$(realpath -s "$CONFIG_FILE")
CONFIG_FILE=$(realpath -s "$CONFIG_FILE" || realpath "$CONFIG_FILE")
fi

# Ensure that the confguration file is present
Expand All @@ -42,7 +42,7 @@ if test -z "${CONFIG_FILE}"; then
exit 1
else
# shellcheck disable=SC1090
source "${CONFIG_FILE}"
source ${CONFIG_FILE}
fi

CONTAINER_NAME=${CONTAINER_NAME:-pigen_work}
Expand Down

0 comments on commit 66db5e0

Please sign in to comment.