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

kiss: store path once

This commit is contained in:
Dylan Araps 2021-07-16 15:04:23 +03:00
parent 35be405279
commit f644275c62
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

6
kiss
View File

@ -269,10 +269,8 @@ pkg_cache() {
# method if found or first match of the below glob.
pkg_find_version "$1"
set +f
set -f -- \
"$bin_dir/$1@$repo_ver-$repo_rel.tar.$KISS_COMPRESS" \
"$bin_dir/$1@$repo_ver-$repo_rel.tar."*
set +f -- "$bin_dir/$1@$repo_ver-$repo_rel.tar."
set -f -- "$1$KISS_COMPRESS" "$1"*
tar_file=$1