Prechádzať zdrojové kódy

Add more download debug output

bryan 5 dní pred
rodič
commit
347dcd44ae
1 zmenil súbory, kde vykonal 3 pridanie a 2 odobranie
  1. 3 2
      installJRMC

+ 3 - 2
installJRMC

@@ -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