Add more download debug output
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
# * Be careful with tabs in heredocs
|
# * Be careful with tabs in heredocs
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
declare -g SCRIPT_VERSION="1.5.2"
|
declare -g SCRIPT_VERSION="1.5.3-dev"
|
||||||
declare -g MC_REPO="bullseye" # should match the MC_VERSION
|
declare -g MC_REPO="bullseye" # should match the MC_VERSION
|
||||||
# declare -g MC_REPO="bookworm" # should match the MC_VERSION
|
# declare -g MC_REPO="bookworm" # should match the MC_VERSION
|
||||||
declare -g MC_VERSION="33.0.72" # do find all replace
|
declare -g MC_VERSION="33.0.72" # do find all replace
|
||||||
@@ -1775,6 +1775,7 @@ execute() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
download() {
|
download() {
|
||||||
|
debug "Running: ${FUNCNAME[0]} $*"
|
||||||
local url="$1"
|
local url="$1"
|
||||||
local output="${2:-}"
|
local output="${2:-}"
|
||||||
local -a cmd
|
local -a cmd
|
||||||
@@ -1788,7 +1789,7 @@ download() {
|
|||||||
fi
|
fi
|
||||||
elif command -v wget &>/dev/null || install_package --silent wget; then
|
elif command -v wget &>/dev/null || install_package --silent wget; then
|
||||||
cmd=(wget --quiet)
|
cmd=(wget --quiet)
|
||||||
[[ -n "$output" ]] && cmd+=(--output-document="$output")
|
[[ -n "$output" ]] && cmd+=("--output-document=$output")
|
||||||
else
|
else
|
||||||
err "Unable to install wget or curl"
|
err "Unable to install wget or curl"
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user