From cbc3fbcb36499326ec6a95aabc17c59f9c13e978 Mon Sep 17 00:00:00 2001 From: "owenr@fferty.me" Date: Wed, 15 Jan 2020 03:20:26 +0000 Subject: add doas support FossilOrigin-Name: e3ab286c0134db5c399e339abd1f43441dc9cdd7b4caf1be1517b514a2ba50a2 --- kiss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kiss b/kiss index 39b1b86..12b6b21 100755 --- a/kiss +++ b/kiss @@ -852,6 +852,9 @@ pkg_updates() { if command -v sudo >/dev/null; then sudo git fetch sudo git merge + elif command -v doas >/dev/null; then + doas git fetch + doas git merge else su -c 'git fetch && git merge' fi @@ -967,6 +970,8 @@ args() { [ "$(id -u)" = 0 ] || { if command -v sudo >/dev/null; then sudo -E KISS_FORCE="$KISS_FORCE" kiss "$action" "$@" + elif command -v doas >/dev/null; then + doas KISS_FORCE="$KISS_FORCE" kiss "$action" "$@" else su -pc "KISS_FORCE=$KISS_FORCE kiss $action $*" fi -- cgit v1.2.3