mirror of
https://github.com/vmstan/gravity-sync.git
synced 2024-08-30 18:22:11 +00:00
Update gravity-sync.sh
This commit is contained in:
parent
3ee922011f
commit
4b47893026
@ -281,7 +281,7 @@ function validate_os_sshpass {
|
||||
else
|
||||
ssh -o ConnectTimeout=5 -o BatchMode=yes -o StrictHostKeyChecking=no ${REMOTE_USER}@${REMOTE_HOST} 'exit'
|
||||
if [ "$?" != "0" ]; then
|
||||
SSHPASSWORD="sshpass -p ${REMOTE_PASS} "
|
||||
SSHPASSWORD="sshpass -p '${REMOTE_PASS}' "
|
||||
MESSAGE="Using SSH Password Authentication"
|
||||
else
|
||||
sshpassword=''
|
||||
|
Loading…
Reference in New Issue
Block a user