gitlab-ce-arm64/check-version.sh
2020-11-24 17:07:19 +08:00

13 lines
369 B
Bash

#!/bin/bash
SEARCH_PAGES='1'
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