mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
Simplify curl check
This commit is contained in:
parent
9fdd7947f2
commit
5fcf044c2b
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user