From 470d280c11db3bcab247bb97d80f20266f8c36a1 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 14 Aug 2021 15:15:34 +0300 Subject: [PATCH] kiss: Fix random cache clean failures Turns out that kiss extensions which call the package manager inherit the parent _KISS_LVL value. This get incremented further and the wrong cache clean path is taken on exit. Closes #259 --- kiss | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index b85bb48..4743e5c 100755 --- a/kiss +++ b/kiss @@ -1881,8 +1881,11 @@ args() { ;; *) + # _KISS_LVL must be reset here so the that any extensions + # which call the package manager do not increment the value + # further than the parent instance. pkg_find "kiss-$action*" "" -x "$PATH" - "$repo_dir" "$@" + _KISS_LVL=0 "$repo_dir" "$@" ;; esac }