kiss: fix KISS_ROOT

This commit is contained in:
Dylan Araps 2019-08-31 15:57:15 +03:00
parent 8ed61fa9ad
commit ee6686679f
1 changed files with 1 additions and 1 deletions

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
}
;;