From 41fe1044da3022646b271fef0369d3a1c09bb58b Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Thu, 28 Mar 2024 18:16:52 +0100 Subject: [PATCH] Silence the kernel.org timeout check and only compare the 502 check against head -n 1 --- linux-tkg-config/prepare | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index c3951f0..91addb3 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -23,7 +23,7 @@ fi if [[ -z "$_git_mirror" ]]; then _git_mirror="${_git_remote_names[2]}" - if $( ! timeout 5 git ls-remote ${_kernel_git_remotes[$_git_mirror]} ) || [[ "$( git ls-remote ${_kernel_git_remotes[$_git_mirror]} )" = *502* ]]; then + if $( ! timeout 5 git ls-remote ${_kernel_git_remotes[$_git_mirror]} >/dev/null ) || [[ "$( git ls-remote ${_kernel_git_remotes[$_git_mirror]} | head -n 1 )" = *502* ]]; then warning "kernel.org unreachable or too long to respond" _git_mirror="${_git_remote_names[0]}" fi