From b24d287e39ce7eaefa058ec9a34e307db085d793 Mon Sep 17 00:00:00 2001 From: Shiming Zhang <wzshiming@foxmail.com> Date: Tue, 14 Sep 2021 12:03:41 +0800 Subject: [PATCH] Add deep sync badge --- scripts/check-image.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/check-image.sh b/scripts/check-image.sh index d249bcc..0373164 100755 --- a/scripts/check-image.sh +++ b/scripts/check-image.sh @@ -71,5 +71,10 @@ sync="$(cat "${LOGFILE}" | grep " SYNC: " | wc -l | tr -d ' ' || :)" unsync="$(cat "${LOGFILE}" | grep " UNSYNC: " | wc -l | tr -d ' ' || :)" sum=$(($sync + $unsync)) -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 +if [[ "${QUICKLY}" == "true" ]]; then + 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