aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-31 09:38:51 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-31 09:38:51 +0000
commitc82a2f412731c99422102cab31dd4c8207cb9a31 (patch)
treed8f9158e45e52ef24f473642badf9d4373212580
parent22a655190b108195fcedb401714f371148b756dd (diff)
downloadcpt-c82a2f412731c99422102cab31dd4c8207cb9a31.tar.gz
docs: update
FossilOrigin-Name: 80b642dba1b005cc3cd66e4281c8e543246b2cd1f2fec1d2b97590b4ad5e186a
-rwxr-xr-xkiss4
1 files changed, 2 insertions, 2 deletions
diff --git a/kiss b/kiss
index bd2890a..54ee9f8 100755
--- a/kiss
+++ b/kiss
@@ -50,12 +50,12 @@ prompt() {
as_root() {
# Simple function to run a command as root using either 'sudo',
- # 'doas' or 'su'. This also handles KISS' environment variables.
+ # 'doas' or 'su'. Hurrah for choice.
log "Using '${su:-su}'"
case $su in
*sudo) sudo -Eu "${user:-root}" -- "$@" ;;
- *doas) doas -u "${user:-root}" -- "$@" ;;
+ *doas) doas -u "${user:-root}" -- "$@" ;;
*) su -pc "$* <&3" "${user:-root}" 3<&0 </dev/tty ;;
esac
}