Simplify curl check

This commit is contained in:
thespad 2025-08-25 15:27:57 +01:00
parent 9fdd7947f2
commit 5fcf044c2b
No known key found for this signature in database

View File

@ -380,7 +380,7 @@ run_mods() {
fi
ARCH=$(get_arch)
write_mod_debug "Arch detected as ${ARCH}"
if [[ -z "${TOKEN}" ]] && [[ -z $(curl -sIk "${MANIFEST_URL}" | grep -E 'HTTP/\S+' | awk {'print $2'}) ]]; then
if [[ -z "${TOKEN}" ]] && [[ -z $(curl -sIk "${MANIFEST_URL}") ]]; then
write_mod_error "No response from ${REGISTRY}, switching to offline mode for ${DOCKER_MOD}"
MOD_OFFLINE="true"
else