aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authorowenr@fferty.me <owenr@fferty.me>2020-01-15 03:20:26 +0000
committerowenr@fferty.me <owenr@fferty.me>2020-01-15 03:20:26 +0000
commitcbc3fbcb36499326ec6a95aabc17c59f9c13e978 (patch)
treee9d1f76c3fb75d1b89c408d5f782c4379bfd4912 /kiss
parent8fb8093b752aa2388558256972419a3978f2c291 (diff)
downloadcpt-cbc3fbcb36499326ec6a95aabc17c59f9c13e978.tar.gz
add doas support
FossilOrigin-Name: e3ab286c0134db5c399e339abd1f43441dc9cdd7b4caf1be1517b514a2ba50a2
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss5
1 files changed, 5 insertions, 0 deletions
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