From 37192f9dff1de1543676a1e77109bc0bde57d425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arma=C3=ABl=20Gu=C3=A9neau?= Date: Fri, 26 Apr 2024 13:15:52 +0200 Subject: [PATCH] tlsproxy: better error message when no argument is passed --- tlsproxy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tlsproxy b/tlsproxy index 344c3ac..4f9febe 100755 --- a/tlsproxy +++ b/tlsproxy @@ -7,7 +7,7 @@ set -xe cd $(dirname $0) CLUSTER="$1" -if [ ! -d "cluster/$CLUSTER" ]; then +if [ ! -d "cluster/$CLUSTER" ] || [ -z "$CLUSTER" ]; then echo "Usage: $0 " echo "The cluster name must be the name of a subdirectory of cluster/" exit 1