aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-04-09 18:28:20 +0200
committerPatrick Spek <p.spek@tyil.nl>2020-04-09 18:28:20 +0200
commit426c44c27c20845b64958a46f47c29f687f42408 (patch)
treeb9638a3b9aa2551ebc8cd10e234b741e0609d6a0
parent0db157fde9c74fa8cd845bc29e1db0fe58824ad6 (diff)
Properly ignore -l's effects when -T is given
-rw-r--r--lib/actions/build-docker.bash9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/actions/build-docker.bash b/lib/actions/build-docker.bash
index 86060df..235eabe 100644
--- a/lib/actions/build-docker.bash
+++ b/lib/actions/build-docker.bash
@@ -34,8 +34,15 @@ action() {
fi
target=$1
+ shift
- if (( 1 < $# ))
+ # Show warnings
+ if [[ -n $tag ]] && [[ -n $tag_latest ]]
+ then
+ warn "-l is ignored if -T is given"
+ fi
+
+ if (( 0 < $# ))
then
warn "Only $target will be built, additional arguments are being ignored!"
fi