Merge pull request #735 from xueshanf/patch-1
Bailout when there is not enough input arguments
This commit is contained in:
commit
b44a1b2802
|
|
@ -15,8 +15,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
if [ $# -lt 3 ];
|
if [ $# -lt 3 ]; then
|
||||||
then echo "Usage: run_in_docker.sh <path to Dockerfile> <context directory> <image tag> <cache>"
|
echo "Usage: run_in_docker.sh <path to Dockerfile> <context directory> <image tag> <cache>"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dockerfile=$1
|
dockerfile=$1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue