mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-24 08:00:05 -07:00
kiss: fix KISS_LVL
This commit is contained in:
parent
2bebf1f318
commit
83a7556dee
8
kiss
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user