kiss: fix random cache errors.

This commit is contained in:
Dylan Araps 2021-07-15 22:32:12 +03:00
parent cdbe560117
commit b1332a309a
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 2 additions and 1 deletions

3
kiss
View File

@ -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.