summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Hilligsøe <github@hilli.dk>2019-07-23 15:44:33 +0200
committerXECDesign <XECDesign@users.noreply.github.com>2019-07-23 14:44:33 +0100
commit5436273ec728c8369dab9c08f2739805f20510f7 (patch)
treef42379f49271765596e82d391f042d5f29669a47
parentc0714e33d61da15538ad8deeb23bc195564f0880 (diff)
Make build_docker.sh portable again (#308)
Last commit made the script break on macOS. From `man sed` (On Linux): ``` -E, -r, --regexp-extended use extended regular expressions in the script (for portability use POSIX -E). ```
-rwxr-xr-xbuild-docker.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-docker.sh b/build-docker.sh
index 2210cb5..f968545 100755
--- a/build-docker.sh
+++ b/build-docker.sh
@@ -63,7 +63,7 @@ if [ "${CONTAINER_EXISTS}" != "" ] && [ "${CONTINUE}" != "1" ]; then
fi
# Modify original build-options to allow config file to be mounted in the docker container
-BUILD_OPTS="$(echo ${BUILD_OPTS:-} | sed -r 's@\-c\s?([^ ]+)@-c /config@')"
+BUILD_OPTS="$(echo ${BUILD_OPTS:-} | sed -E 's@\-c\s?([^ ]+)@-c /config@')"
${DOCKER} build -t pi-gen "${DIR}"
if [ "${CONTAINER_EXISTS}" != "" ]; then