kiss: fix KISS_LVL

This commit is contained in:
Dylan Araps 2021-07-16 12:27:48 +03:00
parent 2bebf1f318
commit 83a7556dee
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 4 additions and 4 deletions

8
kiss
View File

@ -1741,6 +1741,10 @@ args() {
;;
esac
# Need to increment KISS_LVL here to ensure we don't wipe the cache
# early by non-asroot invocations.
export KISS_LVL=$((KISS_LVL + 1))
# Rerun the script as root with a fixed environment if needed. We sadly
# can't run singular functions as root so this is needed.
case $action in a|alternatives|i|install|r|remove)
@ -1762,10 +1766,6 @@ args() {
}
esac
# Need to increment KISS_LVL here to ensure we don't wipe the cache
# early by non-asroot invocations.
export KISS_LVL=$((KISS_LVL + 1))
# Actions can be abbreviated to their first letter. This saves keystrokes
# once you memorize the commands.
case $action in