gitlab-ce-arm64/check-version.sh

13 lines
369 B
Bash
Raw Normal View History

2020-11-24 17:07:19 +08:00
#!/bin/bash
2021-01-14 21:08:59 +08:00
SEARCH_PAGES='3'
2020-11-24 17:07:19 +08:00
if [ -f ./version_list ]; then
rm version_list
fi
for i in $(seq 1 ${SEARCH_PAGES}); do
curl -s "https://packages.gitlab.com/gitlab/gitlab-ce?page=${i}" | grep "_arm64.deb" | grep -v '\-rc' | sed 's/.*>\(.*\)<.*/\1/' | sort -u | sed 's/gitlab-ce_\(.*\)_arm64.deb/\1/' >> version_list;
done
sort -rVu version_list -o version_list