1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

kiss: fix bug with source download and variables

This commit is contained in:
Dylan Araps 2021-07-15 09:34:21 +03:00
parent 46993dfa26
commit 515ae5b549
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

6
kiss
View File

@ -360,12 +360,12 @@ pkg_source() {
pkg_source_resolve "$1" "$src" "$dest" "$2" pkg_source_resolve "$1" "$src" "$dest" "$2"
case $_res in url+*) case $_res in url+*)
log "$1" "Downloading $src" log "$1" "Downloading ${_res##url+}"
mkdir -p "$PWD/$dest" mkdir -p "$PWD/$dest"
curl -fLo "$_des" "$src" || { curl -fLo "$_des" "${_res##url+}" || {
rm -f "$_des" rm -f "$_des"
die "$1" "Failed to download $src" die "$1" "Failed to download ${_res##url+}"
} }
esac esac
done < "$repo_dir/sources" done < "$repo_dir/sources"