forked from kiss-community/kiss
kiss: Fix curl not exiting with error on 404
This commit is contained in:
parent
feac556f56
commit
f499415c20
2
kiss
2
kiss
@ -148,7 +148,7 @@ pkg_sources() {
|
|||||||
|
|
||||||
# Remote source.
|
# Remote source.
|
||||||
elif [ -z "${src##*://*}" ]; then
|
elif [ -z "${src##*://*}" ]; then
|
||||||
curl "$src" -Lo "${src##*/}" || {
|
curl "$src" -fLo "${src##*/}" || {
|
||||||
rm -f "${src##*/}"
|
rm -f "${src##*/}"
|
||||||
die "$1" "Failed to download $src"
|
die "$1" "Failed to download $src"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user