mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-02-14 09:39:51 +00:00
fix: revert curl --fail-with-body to --fail
This commit is contained in:
@@ -119,9 +119,9 @@ fn_curl() { (
|
|||||||
a_url="${1}"
|
a_url="${1}"
|
||||||
a_path="${2}"
|
a_path="${2}"
|
||||||
|
|
||||||
cmd_curl="curl --fail-with-body -sSL -#"
|
cmd_curl="curl -f -sSL -#"
|
||||||
if fn_is_interactive; then
|
if fn_is_interactive; then
|
||||||
cmd_curl="curl --fail-with-body sSL"
|
cmd_curl="curl -f sSL"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
b_triple_ua="$(fn_get_target_triple_user_agent)"
|
b_triple_ua="$(fn_get_target_triple_user_agent)"
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ function Invoke-DownloadUrl {
|
|||||||
Write-Host " ?$Params"
|
Write-Host " ?$Params"
|
||||||
$URL = "${URL}?${Params}"
|
$URL = "${URL}?${Params}"
|
||||||
}
|
}
|
||||||
curl.exe '-#' --fail-with-body -sS -A $Env:WEBI_UA -L $URL | Out-File $TmpPath
|
curl.exe '-#' -f -sS -A $Env:WEBI_UA -L $URL | Out-File $TmpPath
|
||||||
|
|
||||||
Remove-Item -Path $Path -Force -ErrorAction Ignore
|
Remove-Item -Path $Path -Force -ErrorAction Ignore
|
||||||
Move-Item $TmpPath $Path
|
Move-Item $TmpPath $Path
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ function Add-AuthorizedKey($UrlOrPath) {
|
|||||||
|
|
||||||
$TmpKeys = "new_authorized_keys.tmp.txt"
|
$TmpKeys = "new_authorized_keys.tmp.txt"
|
||||||
|
|
||||||
curl.exe --fail-with-body -sS $UrlOrPath | Out-File -Force "${TmpKeys}.partial"
|
curl.exe -f -sS $UrlOrPath | Out-File -Force "${TmpKeys}.partial"
|
||||||
$null = Move-Item -Force "${TmpKeys}.partial" $TmpKeys
|
$null = Move-Item -Force "${TmpKeys}.partial" $TmpKeys
|
||||||
|
|
||||||
IF ($IsHttp) {
|
IF ($IsHttp) {
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ function Invoke-DownloadUrl {
|
|||||||
Write-Host " ?$Params"
|
Write-Host " ?$Params"
|
||||||
$URL = "${URL}?${Params}"
|
$URL = "${URL}?${Params}"
|
||||||
}
|
}
|
||||||
curl.exe '-#' --fail-with-body -sS -A $Env:WEBI_UA -L $URL | Out-File $TmpPath
|
curl.exe '-#' -f -sS -A $Env:WEBI_UA -L $URL | Out-File $TmpPath
|
||||||
|
|
||||||
Remove-Item -Path $Path -Force -ErrorAction Ignore
|
Remove-Item -Path $Path -Force -ErrorAction Ignore
|
||||||
Move-Item $TmpPath $Path
|
Move-Item $TmpPath $Path
|
||||||
|
|||||||
Reference in New Issue
Block a user