aboutsummaryrefslogtreecommitdiff
path: root/tlsproxy
diff options
context:
space:
mode:
authorArmaël Guéneau <armael.gueneau@ens-lyon.org>2024-04-26 13:15:52 +0200
committerArmaël Guéneau <armael.gueneau@ens-lyon.org>2024-04-26 13:15:52 +0200
commit37192f9dff1de1543676a1e77109bc0bde57d425 (patch)
treeb43c1de6df2fa372629ec22d592916b9f08e414f /tlsproxy
parente6bac83e020cf49c14687229b26cacb1b9ed3c49 (diff)
downloadnixcfg-37192f9dff1de1543676a1e77109bc0bde57d425.tar.gz
nixcfg-37192f9dff1de1543676a1e77109bc0bde57d425.zip
tlsproxy: better error message when no argument is passed
Diffstat (limited to 'tlsproxy')
-rwxr-xr-xtlsproxy2
1 files changed, 1 insertions, 1 deletions
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 <cluster name>"
echo "The cluster name must be the name of a subdirectory of cluster/"
exit 1