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

View File

@@ -197,6 +197,14 @@ function get() {
mc-image-helper "${flags[@]}" get "$@"
}
function get_silent() {
local flags=(-s)
if isTrue "${DEBUG_GET:-false}"; then
flags+=("--debug")
fi
mc-image-helper "${flags[@]}" get "$@"
}
function isFamily() {
for f in "${@}"; do
if [[ ${FAMILY^^} == "${f^^}" ]]; then