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 "Target subfolder set to $targetfolder"
|
||||||
echo
|
echo
|
||||||
if [ "${USE_SFTP}" == "yes" ]; then
|
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
|
if [ -z "$results" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Files copied successfully."
|
echo "Files copied successfully."
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
echo
|
echo
|
||||||
echo "ERROR: Attempt to mount zmrepo.zoneminder.com failed!"
|
echo "ERROR: Attempt to rsync to zmrepo.zoneminder.com failed!"
|
||||||
echo "sshfs gave the following error message:"
|
echo "rsync gave the following error message:"
|
||||||
echo \"$results\"
|
echo \"$results\"
|
||||||
echo
|
echo
|
||||||
exit 99
|
exit 99
|
||||||
|
|
Loading…
Reference in New Issue