forked from kiss-community/kiss
kiss: fix KISS_ROOT
This commit is contained in:
parent
8ed61fa9ad
commit
ee6686679f
2
kiss
2
kiss
@ -967,7 +967,7 @@ args() {
|
|||||||
# Rerun the script with 'sudo' if the user isn't root.
|
# Rerun the script with 'sudo' if the user isn't root.
|
||||||
# Cheeky but 'sudo' can't be used on shell functions themselves.
|
# Cheeky but 'sudo' can't be used on shell functions themselves.
|
||||||
[ "$(id -u)" = 0 ] || {
|
[ "$(id -u)" = 0 ] || {
|
||||||
sudo KISS_PATH=$KISS_PATH kiss "$action" "$@"
|
sudo -E kiss "$action" "$@"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user