From ff18872fdab7dba78c55680c32659890f345ee58 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Wed, 8 Jan 2020 15:30:12 -0800 Subject: [PATCH] chore(scripts): limit number of fetched builds to 3 by default (#398) --- browser_patches/tools/check_cdn.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/browser_patches/tools/check_cdn.sh b/browser_patches/tools/check_cdn.sh index c61d130313..8bcb0b373d 100755 --- a/browser_patches/tools/check_cdn.sh +++ b/browser_patches/tools/check_cdn.sh @@ -3,7 +3,7 @@ set -e set +x if [[ ($1 == '--help') || ($1 == '-h') ]]; then - echo "usage: $(basename $0) [firefox|webkit]" + echo "usage: $(basename $0) [firefox|webkit] [--full-history]" echo echo "List CDN status for browser" exit 0 @@ -69,12 +69,17 @@ else exit 1 fi +STOP_REVISION=$((REVISION - 3)) +if [[ $* == *--full-history* ]]; then + STOP_REVISION=0 +fi + printf "%7s" "" for i in "${ALIASES[@]}"; do printf $COLUMN $i done printf "\n" -while (( REVISION > 0 )); do +while (( REVISION > $STOP_REVISION )); do printf "%-7s" ${REVISION} for i in "${ARCHIVES[@]}"; do URL=$(printf $i $REVISION)