diff options
author | owenr@fferty.me <owenr@fferty.me> | 2020-01-15 03:20:26 +0000 |
---|---|---|
committer | owenr@fferty.me <owenr@fferty.me> | 2020-01-15 03:20:26 +0000 |
commit | cbc3fbcb36499326ec6a95aabc17c59f9c13e978 (patch) | |
tree | e9d1f76c3fb75d1b89c408d5f782c4379bfd4912 | |
parent | 8fb8093b752aa2388558256972419a3978f2c291 (diff) | |
download | cpt-cbc3fbcb36499326ec6a95aabc17c59f9c13e978.tar.gz |
add doas support
FossilOrigin-Name: e3ab286c0134db5c399e339abd1f43441dc9cdd7b4caf1be1517b514a2ba50a2
-rwxr-xr-x | kiss | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |