소스 검색

check for unset variable correctly

Girish Ramakrishnan 9 년 전
부모
커밋
2f8df19cfe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      start.sh

+ 1 - 1
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"