mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-17 17:56:19 +02:00
Merge pull request #735 from xueshanf/patch-1
Bailout when there is not enough input arguments
This commit is contained in:
+3
-2
@@ -15,8 +15,9 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ $# -lt 3 ];
|
||||
then echo "Usage: run_in_docker.sh <path to Dockerfile> <context directory> <image tag> <cache>"
|
||||
if [ $# -lt 3 ]; then
|
||||
echo "Usage: run_in_docker.sh <path to Dockerfile> <context directory> <image tag> <cache>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dockerfile=$1
|
||||
|
||||
Reference in New Issue
Block a user