Unverified Commit 65f91b83 authored by Tim Visée's avatar Tim Visée Committed by GitHub
Browse files

BusyBox realpath does not support -s flag, fallback to use no flags (#384)

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

* Fix config sourcing problem
parent 38d22e97
......@@ -32,7 +32,7 @@ done
# 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
......@@ -41,7 +41,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}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment