diff options
author | Tim Visée <[email protected]> | 2020-02-20 18:20:03 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-02-20 17:20:03 +0000 |
commit | 65f91b8349565f5ddb8806ccc80a48871c5b86e5 (patch) | |
tree | e38d5d735c25642c8749ecbb9663e006dd4d427a /build-docker.sh | |
parent | 38d22e976a2d6ad2ccabc2704c966f586550122c (diff) |
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
Diffstat (limited to 'build-docker.sh')
-rwxr-xr-x | build-docker.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build-docker.sh b/build-docker.sh index 79b68d4..b6a9ea3 100755 --- a/build-docker.sh +++ b/build-docker.sh @@ -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} |