From d7ac7219a2fc62026b4a0b234f9d40f7e211cf15 Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Sun, 24 May 2020 21:21:22 -0500 Subject: [PATCH] Proper bash value --- gravity-sync.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index 24965cd..6d57b2d 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -275,11 +275,11 @@ function validate_ph_folders { function validate_os_sshpass { if hash sshpass 2>/dev/null then - if $REMOTE_PASS != '' + if [-z "$REMOTE_PASS" ] then - sshpassword="sshpass -p ${REMOTE_PASS}" - else sshpassword='' + else + sshpassword="sshpass -p ${REMOTE_PASS}" fi else sshpassword=''