fix: revert curl --fail-with-body to --fail

This commit is contained in:
AJ ONeal
2023-11-17 08:57:24 -07:00
parent 993e2dd75b
commit c0c7e61cb5
4 changed files with 5 additions and 5 deletions

View File

@@ -119,9 +119,9 @@ fn_curl() { (
a_url="${1}"
a_path="${2}"
cmd_curl="curl --fail-with-body -sSL -#"
cmd_curl="curl -f -sSL -#"
if fn_is_interactive; then
cmd_curl="curl --fail-with-body sSL"
cmd_curl="curl -f sSL"
fi
b_triple_ua="$(fn_get_target_triple_user_agent)"

View File

@@ -69,7 +69,7 @@ function Invoke-DownloadUrl {
Write-Host " ?$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
Move-Item $TmpPath $Path

View File

@@ -166,7 +166,7 @@ function Add-AuthorizedKey($UrlOrPath) {
$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
IF ($IsHttp) {

View File

@@ -71,7 +71,7 @@ function Invoke-DownloadUrl {
Write-Host " ?$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
Move-Item $TmpPath $Path