Fixed failed check
This commit is contained in:
parent
3dc0ef721f
commit
c215f0109f
7
sync.sh
7
sync.sh
@ -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
|
|
||||||
|
Loading…
Reference in New Issue
Block a user