use rsync instead of sftp

pull/2722/head
Isaac Connor 2019-10-09 13:00:29 -04:00
parent c7f5673b47
commit 29a8cd3c91
1 changed files with 3 additions and 3 deletions

View File

@ -26,15 +26,15 @@ if [ "${TRAVIS_EVENT_TYPE}" == "cron" ] || [ "${OS}" == "debian" ] || [ "${OS}"
echo "Target subfolder set to $targetfolder"
echo
if [ "${USE_SFTP}" == "yes" ]; then
results="$(sftp build/* "zmrepo@zmrepo.zoneminder.com:${targetfolder}/" 2>&1)"
results="$(rsync build/* "zmrepo@zmrepo.zoneminder.com:${targetfolder}/" 2>&1)"
if [ -z "$results" ]; then
echo
echo "Files copied successfully."
echo
else
echo
echo "ERROR: Attempt to mount zmrepo.zoneminder.com failed!"
echo "sshfs gave the following error message:"
echo "ERROR: Attempt to rsync to zmrepo.zoneminder.com failed!"
echo "rsync gave the following error message:"
echo \"$results\"
echo
exit 99