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). ```
This commit is contained in:
parent
c0714e33d6
commit
5436273ec7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Reference in a new issue