1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 00:20:05 -07:00

kiss: fix KISS_ROOT

This commit is contained in:
Dylan Araps 2019-08-31 15:57:15 +03:00
parent 8ed61fa9ad
commit ee6686679f

2
kiss
View File

@ -967,7 +967,7 @@ args() {
# Rerun the script with 'sudo' if the user isn't root.
# Cheeky but 'sudo' can't be used on shell functions themselves.
[ "$(id -u)" = 0 ] || {
sudo KISS_PATH=$KISS_PATH kiss "$action" "$@"
sudo -E kiss "$action" "$@"
return
}
;;