Silence content type error for external spiget resources (#1431)

This commit is contained in:
Geoff Bourne
2022-03-15 20:56:25 -05:00
committed by GitHub
parent 7f44a04490
commit fda8981028
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ downloadResourceFromSpiget() {
resource=${1?}
resourceUrl="https://api.spiget.org/v2/resources/${resource}"
if ! outfile=$(get --output-filename -o /tmp "${acceptArgs[@]}" "${resourceUrl}/download"); then
if ! outfile=$(get_silent --output-filename -o /tmp "${acceptArgs[@]}" "${resourceUrl}/download"); then
log "ERROR: failed to download resource '${resource}' from ${resourceUrl}/download"
if externalUrl=$(get --json-path '$.file.externalUrl' "${resourceUrl}"); then
log " Visit $externalUrl to pre-download the resource"