Update links.yml to include apt-get update

This commit is contained in:
Kroese 2026-03-23 15:02:45 +01:00 committed by GitHub
parent 75165ef15c
commit 6ddd09259f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -28,7 +28,8 @@ jobs:
count=0 count=0
host="" host=""
declare -A seen declare -A seen
sudo apt-get install curl-impersonate sudo apt-get update
sudo apt-get install curl-impersonate
check() { check() {
local url="$1" http local url="$1" http
http=$(curl_ff -sSL -o /dev/null -w "%{http_code}" --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0)" --max-time 10 -I -- "$url" 2>&1) || http="000" http=$(curl_ff -sSL -o /dev/null -w "%{http_code}" --user-agent "Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0)" --max-time 10 -I -- "$url" 2>&1) || http="000"