Fixed failed check

This commit is contained in:
Marcus Noble 2020-12-13 16:45:45 +00:00
parent 3dc0ef721f
commit c215f0109f

View File

@ -84,10 +84,13 @@ for REPO in ${REPOS}; do
printf "\n✅ Successfully synced ${REPO}\n\n" printf "\n✅ Successfully synced ${REPO}\n\n"
done done
if [ ! -z "${FAILED_MESSAGE}" ]; if [ ! -n "${FAILED_MESSAGE}" ];
then then
echo "Failed!"
printf ${FAILED_MESSAGE} printf ${FAILED_MESSAGE}
exit 1 exit 1
else
echo "All completed successfully!"
exit 0
fi fi
exit 0