From adcdd7185bced7de061e9fe15b5f7d1f17610cff Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Thu, 30 Jan 2020 08:36:08 +0000 Subject: kiss: Allow option of setting sudo command FossilOrigin-Name: 4a7d8200bf7def9eba537edb2501a6d0079df6be1e5ee2c92eff0463dfd886b6 --- kiss | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'kiss') diff --git a/kiss b/kiss index a95fd0b..c5c10ff 100755 --- a/kiss +++ b/kiss @@ -50,14 +50,13 @@ prompt() { as_root() { [ "$(id -u)" = 0 ] || { - if command -v sudo >/dev/null; then - sudo -E KISS_FORCE="$KISS_FORCE" "$@" - elif command -v doas >/dev/null; then - KISS_FORCE="$KISS_FORCE" doas "$@" - else - exec 3<&0 - su -pc "KISS_FORCE=$KISS_FORCE $* <&3"