mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 14:11:50 +03:00
chore(scripts): limit number of fetched builds to 3 by default (#398)
This commit is contained in:
parent
065bf5fdb1
commit
ff18872fda
@ -3,7 +3,7 @@ set -e
|
|||||||
set +x
|
set +x
|
||||||
|
|
||||||
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
|
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
|
||||||
echo "usage: $(basename $0) [firefox|webkit]"
|
echo "usage: $(basename $0) [firefox|webkit] [--full-history]"
|
||||||
echo
|
echo
|
||||||
echo "List CDN status for browser"
|
echo "List CDN status for browser"
|
||||||
exit 0
|
exit 0
|
||||||
@ -69,12 +69,17 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
STOP_REVISION=$((REVISION - 3))
|
||||||
|
if [[ $* == *--full-history* ]]; then
|
||||||
|
STOP_REVISION=0
|
||||||
|
fi
|
||||||
|
|
||||||
printf "%7s" ""
|
printf "%7s" ""
|
||||||
for i in "${ALIASES[@]}"; do
|
for i in "${ALIASES[@]}"; do
|
||||||
printf $COLUMN $i
|
printf $COLUMN $i
|
||||||
done
|
done
|
||||||
printf "\n"
|
printf "\n"
|
||||||
while (( REVISION > 0 )); do
|
while (( REVISION > $STOP_REVISION )); do
|
||||||
printf "%-7s" ${REVISION}
|
printf "%-7s" ${REVISION}
|
||||||
for i in "${ARCHIVES[@]}"; do
|
for i in "${ARCHIVES[@]}"; do
|
||||||
URL=$(printf $i $REVISION)
|
URL=$(printf $i $REVISION)
|
||||||
|
Loading…
Reference in New Issue
Block a user