Update 'kfg'

This commit is contained in:
2023-05-26 17:22:09 +02:00
parent 626b0a7bf0
commit fac7a4719f

4
kfg
View File

@@ -211,8 +211,8 @@ function download {
fi
case "${_dld}" in
curl) _result="$(curl "$_args" "${_url}")" || "$(sudo curl "$_args" "${_url}")" || err "curl: failed to download ${_url}" ;;
wget) _result="$(wget "$_args" "${_url}")" || "$(sudo wget "$_args" "${_url}")" || err "wget: failed to download ${_url}" ;;
curl) _result="$(curl $_args "${_url}")" || "$(sudo curl $_args "${_url}")" || err "curl: failed to download ${_url}" ;;
wget) _result="$(wget $_args "${_url}")" || "$(sudo wget $_args "${_url}")" || err "wget: failed to download ${_url}" ;;
*) err "unsupported downloader: ${_dld}" ;;
esac