From 5436273ec728c8369dab9c08f2739805f20510f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20Hilligs=C3=B8e?= Date: Tue, 23 Jul 2019 15:44:33 +0200 Subject: [PATCH] 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). ``` --- build-docker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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