From 160517d588eb66aba0ced5af4b3ed67e9d14e5bf Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 29 Dec 2019 00:27:37 +0100 Subject: [PATCH] Allow building multiple images. --- build-docker-image.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-docker-image.sh b/build-docker-image.sh index 50736bfbe..1e06eb88b 100755 --- a/build-docker-image.sh +++ b/build-docker-image.sh @@ -23,10 +23,12 @@ run() { fi } -if [ -z "${1:-}" ]; then +if [ -z "${@:-}" ]; then for t in Dockerfile.*; do run "${t##Dockerfile.}" done else - run "${1}" + for image in "${@}"; do + run "${image}" + done fi