Merge pull request #1919 from dbannik/fix-add-sftp-backup

fixed add sftp server backup
This commit is contained in:
Serghey Rodin 2019-08-08 14:04:26 +03:00 committed by GitHub
commit 5c61b3efb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,8 +38,7 @@ EOF
sftpc() {
expect -f "-" <<EOF "$@"
set count 0
spawn "/usr/bin/sftp -o StrictHostKeyChecking=no -o \
Port=$port '$user@$host'"
spawn /usr/bin/sftp -o StrictHostKeyChecking=no -o Port=$port $user@$host
expect {
"password:" {
send "$password\r"