cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit c100d749416bbf04c755b0ad9e94b760b3c17ffb
parent 058ebdc480b2e417a93e814873602bbc8adc5ef2
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Thu, 30 Jan 2020 12:04:01 +0200

kiss: doas fixes

Diffstat:
Mkiss | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 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