Format and test

This commit is contained in:
2025-07-11 20:12:10 -04:00
parent 10d9e9e213
commit c44bfe8aa3

View File

@@ -1911,7 +1911,6 @@ download() {
local url="$1" local url="$1"
local output="${2:-}" local output="${2:-}"
local -a cmd local -a cmd
if command -v curl &>/dev/null || install_package --silent curl; then if command -v curl &>/dev/null || install_package --silent curl; then
cmd=(curl --silent --fail --location) cmd=(curl --silent --fail --location)
if [[ -n "$output" ]]; then if [[ -n "$output" ]]; then
@@ -1926,7 +1925,6 @@ download() {
err "Unable to install wget or curl" err "Unable to install wget or curl"
return 1 return 1
fi fi
debug "${cmd[@]}" "$url" debug "${cmd[@]}" "$url"
"${cmd[@]}" "$url" "${cmd[@]}" "$url"
} }