From f644275c6204c1cb353c6166f76c1824b770767f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Jul 2021 15:04:23 +0300 Subject: [PATCH] kiss: store path once --- kiss | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kiss b/kiss index 4485d29..9f679bd 100755 --- a/kiss +++ b/kiss @@ -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