Skip to content

Commit

Permalink
Merge pull request #735 from xueshanf/patch-1
Browse files Browse the repository at this point in the history
Bailout when there is not enough input arguments
  • Loading branch information
tejal29 authored Aug 9, 2019
2 parents d6b2c5b + 06638fa commit b44a1b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions run_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b44a1b2

Please sign in to comment.