tlsproxy: better error message when no argument is passed

This commit is contained in:
Armaël Guéneau 2024-04-26 13:15:52 +02:00
parent e6bac83e02
commit 37192f9dff

View file

@ -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