kiss: potential fix for cache issues. See #218

This commit is contained in:
Dylan Araps 2021-07-16 07:59:37 +03:00
parent 3e73ce0c2a
commit e853e1accc
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 5 additions and 1 deletions

6
kiss
View File

@ -1641,7 +1641,10 @@ pkg_update() {
pkg_clean() {
# Clean up on exit or error. This removes everything related to the build.
[ "$KISS_DEBUG" = 1 ] || rm -rf "$tmp_dir"
# This only runs inside the top-level KISS process.
case ${KISS_DEBUG:-0}-${KISS_LVL:-0} in 0-0)
rm -rf "$tmp_dir"
esac
}
args() {
@ -1703,6 +1706,7 @@ args() {
KISS_COLOR="$KISS_COLOR" \
KISS_TMPDIR="$KISS_TMPDIR" \
KISS_PID="$KISS_PID" \
KISS_LVL="$((KISS_LVL + 1))" \
"$0" "$action" "$@"
return
}