aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkiss6
1 files changed, 3 insertions, 3 deletions
diff --git a/kiss b/kiss
index d8996a3..7c40742 100755
--- a/kiss
+++ b/kiss
@@ -53,9 +53,9 @@ as_root() {
log "Using '${su:-su}'"
case $su in
- *sudo) sudo -u "${user:-root}" -E sh -c "$*" ;;
- *doas) doas -u "${user:-root}" sh -c "KISS_PATH='$KISS_PATH' $*" ;;
- *) su -pc "$* <&3" "${user:-root}" 3<&0 </dev/tty ;;
+ *sudo) sudo -E sh -c "$*" ;;
+ *doas) doas sh -c "HOME='$HOME' KISS_PATH='$KISS_PATH' $*" ;;
+ *) su -pc "$* <&3" 3<&0 </dev/tty ;;
esac
exit