use rsync instead of sftp
parent
c7f5673b47
commit
29a8cd3c91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue