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