Fixed failed check

This commit is contained in:
Marcus Noble 2020-12-13 16:45:45 +00:00
parent 3dc0ef721f
commit c215f0109f
1 changed files with 5 additions and 2 deletions

View File

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