From b1332a309afa5ad2e200f36b1d0749a69e12a46a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 15 Jul 2021 22:32:12 +0300 Subject: [PATCH] kiss: fix random cache errors. --- kiss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index 1a30a45..a313281 100755 --- a/kiss +++ b/kiss @@ -1703,6 +1703,7 @@ args() { KISS_CHOICE="$KISS_CHOICE" \ KISS_COLOR="$KISS_COLOR" \ KISS_TMPDIR="$KISS_TMPDIR" \ + KISS_PID="$KISS_PID" \ "$0" "$action" "$@" return } @@ -1863,7 +1864,7 @@ main() { # to each specific KISS instance. This allows multiple package manager # instances to be run at once. Store the value in another variable so # that it doesn't change beneath us. - pid=$$ + pid=${KISS_PID:=$$} # Catch errors and ensure that build files and directories are cleaned # up before we die. This occurs on 'Ctrl+C' as well as success and error.