kopia lustrzana https://github.com/c9/core
fix arguments to curl
rodzic
36795ae03f
commit
281925be9e
|
@ -6,10 +6,10 @@ has() {
|
||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
if has "wget"; then
|
if has "curl"; then
|
||||||
DOWNLOAD="wget --no-check-certificate -nc"
|
DOWNLOAD="curl -L "
|
||||||
elif has "curl"; then
|
elif has "wget"; then
|
||||||
DOWNLOAD="curl -sSOL"
|
DOWNLOAD="wget -O - "
|
||||||
else
|
else
|
||||||
echo "Error: you need curl or wget to proceed" >&2;
|
echo "Error: you need curl or wget to proceed" >&2;
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Ładowanie…
Reference in New Issue