Compare commits

..

No commits in common. "10bff5aa776b2ac5d0741d1cbc3e345914a9f965" and "33aaca96528225f044df224b54dac9149b06fd6e" have entirely different histories.

View File

@ -56,10 +56,7 @@ 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"
# Silence the downloader's own stderr (curl's "could not resolve host" / 404 if ! _lpDownload "$base/$channel/index.json" "$idx"; then
# 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