fix(distribution): silence downloader stderr on index fetch
curl's raw "(6) Could not resolve host" / 404 noise leaked through on the index.json download while the .minisig fetch was already silenced — inconsistent and confusing. The caller's clean isError covers the failure, so route the index download's stderr to /dev/null too. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: librelad <librelad@digitalangels.vip>
This commit is contained in:
parent
33aaca9652
commit
432bd52899
@ -56,7 +56,10 @@ lpFetchIndex() {
|
|||||||
[[ -n "$(_lpFetchTool)" ]] || { isError "lpFetchIndex: need curl or wget"; return 1; }
|
[[ -n "$(_lpFetchTool)" ]] || { isError "lpFetchIndex: need curl or wget"; return 1; }
|
||||||
|
|
||||||
tmp="$(mktemp -d)"; idx="$tmp/index.json"; sig="$tmp/index.json.minisig"
|
tmp="$(mktemp -d)"; idx="$tmp/index.json"; sig="$tmp/index.json.minisig"
|
||||||
if ! _lpDownload "$base/$channel/index.json" "$idx"; then
|
# Silence the downloader's own stderr (curl's "could not resolve host" / 404
|
||||||
|
# noise) — the caller's clean error message covers the failure. Consistent
|
||||||
|
# with the .minisig fetch below.
|
||||||
|
if ! _lpDownload "$base/$channel/index.json" "$idx" 2>/dev/null; then
|
||||||
isError "lpFetchIndex: could not download the artifact index"; rm -rf "$tmp"; return 1
|
isError "lpFetchIndex: could not download the artifact index"; rm -rf "$tmp"; return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user