From 0d5fc4a2b68ee3c0ad89b694177a18daba528b36 Mon Sep 17 00:00:00 2001 From: illiliti Date: Sun, 30 Aug 2020 01:14:25 +0300 Subject: [PATCH 1/2] kiss: add support for sls --- kiss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index 47bd3e3..b0fa33b 100755 --- a/kiss +++ b/kiss @@ -57,8 +57,9 @@ as_root() { case ${su##*/} in doas|sudo) "$su" -u "$user" -- env "$@" ;; + sls) "$su" -u "$user" -c -- env "$@" ;; su) "$su" -c "env $* <&3" "$user" 3<&0 Date: Sun, 30 Aug 2020 01:42:15 +0300 Subject: [PATCH 2/2] automatically discover sls --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index b0fa33b..000d5ec 100755 --- a/kiss +++ b/kiss @@ -1565,7 +1565,7 @@ main() { # Figure out which 'sudo' command to use based on the user's choice or what # is available on the system. - su=${KISS_SU:-$(command -v sudo || command -v doas)} || su=su + su=${KISS_SU:-$(command -v sudo || command -v doas || command -v sls)} || su=su # Store the date and time of script invocation to be used as the name of # the log files the package manager creates uring builds.