tlsproxy: better error message when no argument is passed
This commit is contained in:
parent
e6bac83e02
commit
37192f9dff
1 changed files with 1 additions and 1 deletions
2
tlsproxy
2
tlsproxy
|
@ -7,7 +7,7 @@ set -xe
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
|
||||||
CLUSTER="$1"
|
CLUSTER="$1"
|
||||||
if [ ! -d "cluster/$CLUSTER" ]; then
|
if [ ! -d "cluster/$CLUSTER" ] || [ -z "$CLUSTER" ]; then
|
||||||
echo "Usage: $0 <cluster name>"
|
echo "Usage: $0 <cluster name>"
|
||||||
echo "The cluster name must be the name of a subdirectory of cluster/"
|
echo "The cluster name must be the name of a subdirectory of cluster/"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue