cpt

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

commit 9f8c04c3b71eb4e241d7c5cebc7f0e44fd567a84
parent 529b93745f2073a94edb77b3c765814c054289fb
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Sun,  9 Feb 2020 14:30:27 +0200

kiss: Split git into 3 commands if running under doas/sudo

Diffstat:
Mkiss | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/kiss b/kiss @@ -1090,8 +1090,11 @@ pkg_updates() { log "Dropping permissions to $user for pull" case $su in - su) as_root "$pull" ;; - *) as_root sh -c "$pull" ;; + su) as_root "$pull" ;; + + *) as_root git fetch + as_root git diff > "$mak_dir/log" + as_root git merge esac ) fi