From 2f8df19cfed63777d1d8dc968cad7298ee90ff05 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 11 Apr 2016 11:46:57 -0700 Subject: [PATCH] check for unset variable correctly --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 0a81680..bbb0751 100755 --- a/start.sh +++ b/start.sh @@ -23,7 +23,7 @@ setup_ldap_source() { # SSH_PORT can be unset to disable SSH disable_ssh="false" -if [[ -z "${SSH_PORT}" ]]; then +if [[ -z "${SSH_PORT:-}" ]]; then echo "SSH disabled" SSH_PORT=29418 # arbitrary port to keep sshd happy disable_ssh="false"