aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authornoreply@github.com <noreply@github.com>2020-01-18 09:05:32 +0000
committernoreply@github.com <noreply@github.com>2020-01-18 09:05:32 +0000
commit0509a5d4363fc26b50a76ca4c044bab2d870d88d (patch)
treeea6b5740cbbc32ea3c9065a9e312e836c84751df /kiss
parenta48ee3c309f33c351747d57f8cb36196fdbde4aa (diff)
parentcbc3fbcb36499326ec6a95aabc17c59f9c13e978 (diff)
downloadcpt-0509a5d4363fc26b50a76ca4c044bab2d870d88d.tar.gz
Merge pull request #84 from ioraff/master
add doas support FossilOrigin-Name: 7bb945456064b276bd33886239370fba775140faa6ca883847dbbff4ea29e95f
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss5
1 files changed, 5 insertions, 0 deletions
diff --git a/kiss b/kiss
index 956293a..ddc6db6 100755
--- a/kiss
+++ b/kiss
@@ -888,6 +888,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
@@ -1003,6 +1006,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