mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20: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
|
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
|
# Rerun the script as root with a fixed environment if needed. We sadly
|
||||||
# can't run singular functions as root so this is needed.
|
# can't run singular functions as root so this is needed.
|
||||||
case $action in a|alternatives|i|install|r|remove)
|
case $action in a|alternatives|i|install|r|remove)
|
||||||
@ -1762,10 +1766,6 @@ args() {
|
|||||||
}
|
}
|
||||||
esac
|
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
|
# Actions can be abbreviated to their first letter. This saves keystrokes
|
||||||
# once you memorize the commands.
|
# once you memorize the commands.
|
||||||
case $action in
|
case $action in
|
||||||
|
Loading…
Reference in New Issue
Block a user