diff options
author | Patrick Spek <p.spek@tyil.nl> | 2020-04-09 18:28:20 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2020-04-09 18:28:20 +0200 |
commit | 426c44c27c20845b64958a46f47c29f687f42408 (patch) | |
tree | b9638a3b9aa2551ebc8cd10e234b741e0609d6a0 /lib/actions | |
parent | 0db157fde9c74fa8cd845bc29e1db0fe58824ad6 (diff) |
Properly ignore -l's effects when -T is given
Diffstat (limited to 'lib/actions')
-rw-r--r-- | lib/actions/build-docker.bash | 9 |
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 |