feat: add web_check(); a replacement for wget --spider
This commit is contained in:
parent
c7af18f0f4
commit
806b1a439f
6
quickget
6
quickget
|
@ -1529,6 +1529,12 @@ function web_redirect() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function web_check() {
|
||||||
|
local URL=""
|
||||||
|
URL=$(web_redirect "${1}")
|
||||||
|
curl --silent --location --head --output /dev/null --fail "${URL}"
|
||||||
|
}
|
||||||
|
|
||||||
function zsync_get() {
|
function zsync_get() {
|
||||||
local DIR="${2}"
|
local DIR="${2}"
|
||||||
local FILE="${1##*/}"
|
local FILE="${1##*/}"
|
||||||
|
|
Loading…
Reference in New Issue