cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 3ec05e936b0196a5c7ce0de83eddbb243b10426f
parent 8e9ccf0969dc96a2615cd9304a3b1eeae50b1c11
Author: dylan <dylan.araps@gmail.com>
Date:   Sat, 18 Jan 2020 11:05:32 +0200

Merge pull request #84 from ioraff/master

add doas support
Diffstat:
Mkiss | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git 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