crank of the verbosity. Add another rsync call just to test if output is not being reported to travis
parent
61e27bcb29
commit
e4c23c3100
|
@ -26,8 +26,8 @@ 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
|
||||||
echo "Running \$(rsync -e 'ssh -v' build/* zmrepo@zmrepo.zoneminder.com:${targetfolder}/ 2>&1)"
|
echo "Running \$(rsync -v -e 'ssh -vvv' build/* zmrepo@zmrepo.zoneminder.com:${targetfolder}/ 2>&1)"
|
||||||
results="$(rsync -v -e 'ssh -v -O ControlMaster=no' build/* zmrepo@zmrepo.zoneminder.com:${targetfolder}/ 2>&1)"
|
results="$(rsync -v -e 'ssh -vvv' 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."
|
||||||
|
@ -37,6 +37,8 @@ if [ "${TRAVIS_EVENT_TYPE}" == "cron" ] || [ "${OS}" == "debian" ] || [ "${OS}"
|
||||||
echo "ERROR: Attempt to rsync to zmrepo.zoneminder.com failed!"
|
echo "ERROR: Attempt to rsync to zmrepo.zoneminder.com failed!"
|
||||||
echo "rsync gave the following error message:"
|
echo "rsync gave the following error message:"
|
||||||
echo \"$results\"
|
echo \"$results\"
|
||||||
|
# Doing this again just for the output
|
||||||
|
rsync -v -e 'ssh -vvv' build/* zmrepo@zmrepo.zoneminder.com:${targetfolder}/ 2>&1
|
||||||
echo
|
echo
|
||||||
exit 99
|
exit 99
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue