mirror of
https://github.com/DaoCloud/public-image-mirror.git
synced 2025-08-11 18:46:34 +08:00
Add deep sync badge
This commit is contained in:
@@ -71,5 +71,10 @@ sync="$(cat "${LOGFILE}" | grep " SYNC: " | wc -l | tr -d ' ' || :)"
|
|||||||
unsync="$(cat "${LOGFILE}" | grep " UNSYNC: " | wc -l | tr -d ' ' || :)"
|
unsync="$(cat "${LOGFILE}" | grep " UNSYNC: " | wc -l | tr -d ' ' || :)"
|
||||||
sum=$(($sync + $unsync))
|
sum=$(($sync + $unsync))
|
||||||
|
|
||||||
echo https://img.shields.io/badge/Sync-${sync}%2F${sum}-blue
|
if [[ "${QUICKLY}" == "true" ]]; then
|
||||||
wget "https://img.shields.io/badge/Sync-${sync}%2F${sum}-blue" -O sync.svg
|
echo "https://img.shields.io/badge/Sync-${sync}%2F${sum}-blue"
|
||||||
|
wget "https://img.shields.io/badge/Sync-${sync}%2F${sum}-blue" -O sync.svg
|
||||||
|
else
|
||||||
|
echo "https://img.shields.io/badge/Deep%20Sync-${sync}%2F${sum}-blue"
|
||||||
|
wget "https://img.shields.io/badge/Deep%20Sync-${sync}%2F${sum}-blue" -O sync.svg
|
||||||
|
fi
|
||||||
|
Reference in New Issue
Block a user