Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
kiss: Fix random cache clean failures
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dylanaraps committed Aug 14, 2021
1 parent dfc2070 commit 470d280
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion kiss
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 470d280

Please sign in to comment.