From a24ab03b2d4bbc2301768420e4e8d835e22d0b5e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 4 Jul 2021 11:34:29 +0000 Subject: [PATCH] kiss: added KISS_DL to set download tool. The command is split into words and executed as follows: $KISS_DL Examples: KISS_DL='curl -fLo' (default) KISS_DL='wget -O' KISS_DL='aria2c -o' ... --- kiss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index 7a59258..95eaf32 100755 --- a/kiss +++ b/kiss @@ -302,7 +302,9 @@ pkg_source() { log "$1" "Downloading $src" 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" die "$1" "Failed to download $src" }