mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix arguments to curl
This commit is contained in:
parent
36795ae03f
commit
281925be9e
@ -6,10 +6,10 @@ has() {
|
||||
return $?
|
||||
}
|
||||
|
||||
if has "wget"; then
|
||||
DOWNLOAD="wget --no-check-certificate -nc"
|
||||
elif has "curl"; then
|
||||
DOWNLOAD="curl -sSOL"
|
||||
if has "curl"; then
|
||||
DOWNLOAD="curl -L "
|
||||
elif has "wget"; then
|
||||
DOWNLOAD="wget -O - "
|
||||
else
|
||||
echo "Error: you need curl or wget to proceed" >&2;
|
||||
exit 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user