forked from kiss-community/kiss
kiss: add support for axel and wget2
This commit is contained in:
parent
bfd75cc6d5
commit
6cf99638ef
16
kiss
16
kiss
@ -425,9 +425,9 @@ pkg_source_get() {
|
|||||||
|
|
||||||
# Set the arguments based on found download utility.
|
# Set the arguments based on found download utility.
|
||||||
case ${cmd_get##*/} in
|
case ${cmd_get##*/} in
|
||||||
curl) set -- -fLo "$@" ;;
|
aria2c|axel) set -- -o "$@" ;;
|
||||||
wget) set -- -O "$@" ;;
|
curl) set -- -fLo "$@" ;;
|
||||||
aria2c) set -- -o "$@" ;;
|
wget|wget2) set -- -O "$@" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
"$cmd_get" "$@" || {
|
"$cmd_get" "$@" || {
|
||||||
@ -1926,10 +1926,12 @@ main() {
|
|||||||
|
|
||||||
# Figure out which download utility is available.
|
# Figure out which download utility is available.
|
||||||
cmd_get=${KISS_GET:-"$(
|
cmd_get=${KISS_GET:-"$(
|
||||||
command -v curl ||
|
command -v aria2c ||
|
||||||
command -v wget ||
|
command -v axel ||
|
||||||
command -v aria2c
|
command -v curl ||
|
||||||
)"} || die "No download utility found (curl, wget, aria2c)"
|
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
|
# Store the date and time of script invocation to be used as the name of
|
||||||
# the log files the package manager creates uring builds.
|
# the log files the package manager creates uring builds.
|
||||||
|
Loading…
Reference in New Issue
Block a user