48 lines
1.5 KiB
Diff
48 lines
1.5 KiB
Diff
--- kiss-mod 2021-07-14 09:10:00.777221565 -0300
|
|
+++ kiss 2021-07-14 09:14:11.863205124 -0300
|
|
@@ -223,16 +223,7 @@
|
|
# behaviour here.
|
|
trap pkg_clean INT
|
|
|
|
-
|
|
- case ${dl} in
|
|
- curl) dl_param="-fLo" ;;
|
|
- axel) dl_param="--output" ;;
|
|
- wget) dl_param="--quiet --show-progress --hsts-file=/dev/null -O" ;;
|
|
- aria2c) dl_param="--out" ;;
|
|
- *) dl_param="-fLo";;
|
|
- esac
|
|
-
|
|
- ${dl} "$src" ${dl_param} "./${dest:-.}/${src##*/}" || {
|
|
+ curl "$src" -fLo "./${dest:-.}/${src##*/}" || {
|
|
rm -f "./${dest:-.}/${src##*/}"
|
|
die "$1" "Failed to download $src"
|
|
}
|
|
@@ -241,7 +232,7 @@
|
|
trap 'pkg_clean; exit 1' INT
|
|
|
|
# Local source (relative).
|
|
- elif [ -e "$repo_dir/$src" ]; then
|
|
+ elif [ -e "$repo_dir/$src" ]; then
|
|
log "$1" "Found local relative source '$src'"
|
|
|
|
# Local source (absolute).
|
|
@@ -761,7 +752,7 @@
|
|
|
|
if [ "$pkg_update" ]; then
|
|
return
|
|
- else
|
|
+ else
|
|
prompt "Install built packages? [$*]" && args i "$@"
|
|
fi
|
|
}
|
|
@@ -1669,8 +1660,6 @@
|
|
# is available on the system.
|
|
su=${KISS_SU:-"$(command -v sudo || command -v doas || command -v ssu)"} || su=su
|
|
|
|
- dl=${KISS_DL:-"$(command -v curl || command -v wget || command -v axel || command -v aria2c)"} || dl=curl
|
|
-
|
|
# Figure out which utility is available to dump elf information.
|
|
elf_cmd=${KISS_ELF:="$(
|
|
command -v readelf ||
|