Update gravity-sync.sh

This commit is contained in:
Michael Stanclift 2020-05-25 13:53:46 -05:00
parent 3ee922011f
commit 4b47893026

View File

@ -281,7 +281,7 @@ function validate_os_sshpass {
else else
ssh -o ConnectTimeout=5 -o BatchMode=yes -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit' ssh -o ConnectTimeout=5 -o BatchMode=yes -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit'
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
SSHPASSWORD="sshpass -p ${REMOTE_PASS} " SSHPASSWORD="sshpass -p '${REMOTE_PASS}' "
MESSAGE="Using SSH Password Authentication" MESSAGE="Using SSH Password Authentication"
else else
sshpassword='' sshpassword=''