diff options
author | noreply@github.com <noreply@github.com> | 2020-01-18 09:05:32 +0000 |
---|---|---|
committer | noreply@github.com <noreply@github.com> | 2020-01-18 09:05:32 +0000 |
commit | 0509a5d4363fc26b50a76ca4c044bab2d870d88d (patch) | |
tree | ea6b5740cbbc32ea3c9065a9e312e836c84751df /kiss | |
parent | a48ee3c309f33c351747d57f8cb36196fdbde4aa (diff) | |
parent | cbc3fbcb36499326ec6a95aabc17c59f9c13e978 (diff) | |
download | cpt-0509a5d4363fc26b50a76ca4c044bab2d870d88d.tar.gz |
Merge pull request #84 from ioraff/master
add doas support
FossilOrigin-Name: 7bb945456064b276bd33886239370fba775140faa6ca883847dbbff4ea29e95f
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |