From 83a7556dee3cda436f50c778b833d15006278c98 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 16 Jul 2021 12:27:48 +0300 Subject: [PATCH] kiss: fix KISS_LVL --- kiss | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kiss b/kiss index 6bbe698..ec78c29 100755 --- a/kiss +++ b/kiss @@ -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