Proper bash value

This commit is contained in:
Michael Stanclift 2020-05-24 21:21:22 -05:00
parent 84855c9284
commit d7ac7219a2

View File

@ -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=''