kiss: Fix curl not exiting with error on 404

This commit is contained in:
Dylan Araps 2020-01-10 17:48:26 +02:00
parent feac556f56
commit f499415c20
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 1 additions and 1 deletions

2
kiss
View File

@ -148,7 +148,7 @@ pkg_sources() {
# Remote source.
elif [ -z "${src##*://*}" ]; then
curl "$src" -Lo "${src##*/}" || {
curl "$src" -fLo "${src##*/}" || {
rm -f "${src##*/}"
die "$1" "Failed to download $src"
}