forked from kiss-community/kiss
kiss: added KISS_DL to set download tool.
The command is split into words and executed as follows: $KISS_DL <dest_file> <url> Examples: KISS_DL='curl -fLo' (default) KISS_DL='wget -O' KISS_DL='aria2c -o' ...
This commit is contained in:
parent
46a2bbdee0
commit
a24ab03b2d
4
kiss
4
kiss
@ -302,7 +302,9 @@ pkg_source() {
|
|||||||
log "$1" "Downloading $src"
|
log "$1" "Downloading $src"
|
||||||
mkdir -p "$PWD/$dest"
|
mkdir -p "$PWD/$dest"
|
||||||
|
|
||||||
curl "$src" -fLo "$_des" || {
|
# Intentional behavior, globbing disabled.
|
||||||
|
# shellcheck disable=2046,2086
|
||||||
|
${KISS_DL:-curl -fLo} "$_des" "$src" || {
|
||||||
rm -f "$_des"
|
rm -f "$_des"
|
||||||
die "$1" "Failed to download $src"
|
die "$1" "Failed to download $src"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user