mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-25 00:20:05 -07:00
kiss: Correctly increment KISS_LVL
This commit is contained in:
parent
d1ba479458
commit
f7a4a106bf
10
kiss
10
kiss
@ -1682,8 +1682,8 @@ pkg_update() {
|
|||||||
|
|
||||||
pkg_clean() {
|
pkg_clean() {
|
||||||
# Clean up on exit or error. This removes everything related to the build.
|
# Clean up on exit or error. This removes everything related to the build.
|
||||||
case ${KISS_DEBUG:-0}-${KISS_LVL:-0} in
|
case ${KISS_DEBUG:-0}-${KISS_LVL:-1} in
|
||||||
0-0)
|
0-1)
|
||||||
# If we are exiting the top-level package manager process, wipe
|
# If we are exiting the top-level package manager process, wipe
|
||||||
# the entire temporary directory.
|
# the entire temporary directory.
|
||||||
rm -rf "$proc"
|
rm -rf "$proc"
|
||||||
@ -1758,12 +1758,16 @@ args() {
|
|||||||
KISS_COLOR="$KISS_COLOR" \
|
KISS_COLOR="$KISS_COLOR" \
|
||||||
KISS_TMPDIR="$KISS_TMPDIR" \
|
KISS_TMPDIR="$KISS_TMPDIR" \
|
||||||
KISS_PID="$KISS_PID" \
|
KISS_PID="$KISS_PID" \
|
||||||
KISS_LVL="$((KISS_LVL + 1))" \
|
KISS_LVL="$KISS_LVL" \
|
||||||
"$0" "$action" "$@"
|
"$0" "$action" "$@"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# Need to increment KISS_LVL here to ensure we don't wipe the cash
|
||||||
|
# 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