From 6cf99638efb2443a44edb7e343f848b1928f03b9 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 20 Jul 2021 19:38:13 +0300 Subject: [PATCH] kiss: add support for axel and wget2 --- kiss | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/kiss b/kiss index 26695e5..3d6f725 100755 --- a/kiss +++ b/kiss @@ -425,9 +425,9 @@ pkg_source_get() { # Set the arguments based on found download utility. case ${cmd_get##*/} in - curl) set -- -fLo "$@" ;; - wget) set -- -O "$@" ;; - aria2c) set -- -o "$@" ;; + aria2c|axel) set -- -o "$@" ;; + curl) set -- -fLo "$@" ;; + wget|wget2) set -- -O "$@" ;; esac "$cmd_get" "$@" || { @@ -1926,10 +1926,12 @@ main() { # Figure out which download utility is available. cmd_get=${KISS_GET:-"$( - command -v curl || - command -v wget || - command -v aria2c - )"} || die "No download utility found (curl, wget, aria2c)" + command -v aria2c || + command -v axel || + command -v curl || + command -v wget || + command -v wget2 || + )"} || die "No download utility found (aria2c, axel, curl, wget, wget2)" # Store the date and time of script invocation to be used as the name of # the log files the package manager creates uring builds.