kiss: Show which file is downloaded

This commit is contained in:
Dylan Araps 2020-02-11 17:33:38 +02:00
parent e2d04426b7
commit 66ddfd11c1
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -188,6 +188,8 @@ pkg_sources() {
( (
repo_src=${src##git+} repo_src=${src##git+}
log "$1" "Cloning ${repo_src%#*}"
[ "${src##*#*}" ] && shallow=--depth=1 [ "${src##*#*}" ] && shallow=--depth=1
cd "$mak_dir/$1/$dest" && cd "$mak_dir/$1/$dest" &&
@ -197,6 +199,8 @@ pkg_sources() {
# Remote source. # Remote source.
elif [ -z "${src##*://*}" ]; then elif [ -z "${src##*://*}" ]; then
log "$1" "Downloading $src"
curl "$src" -fLo "${src##*/}" || { curl "$src" -fLo "${src##*/}" || {
rm -f "${src##*/}" rm -f "${src##*/}"
die "$1" "Failed to download $src" die "$1" "Failed to download $src"