Docker build.sh: Run aux build scripts in subshell

This commit is contained in:
Gernot Schulz 2020-09-07 10:29:18 +02:00
parent fb27f8ce8a
commit a408ee62ee

View File

@ -92,7 +92,7 @@ for i in "${SELECTED_TARGETS[@]}"; do
# Special instructions for local services
build_script="$(dirname "${BASH_SOURCE[0]}")/../${i}/build.sh"
if [[ -f "$build_script" ]]; then
. "$build_script"
( . "$build_script" )
else
docker build --tag "$img" --pull "${OPTIONS[@]}" "$loc"
fi