From 8315dd3ddc3b0267fb50a9ce67cf0a874b1c3408 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 15 Jul 2021 22:48:06 +0300 Subject: [PATCH] kiss: fix bug where second command has user reset --- kiss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss b/kiss index a313281..a2187b9 100755 --- a/kiss +++ b/kiss @@ -79,8 +79,6 @@ as_root() { die "Invalid KISS_SU value: '$cmd_su' (valid: doas, sudo, ssu, su)" ;; esac - - unset user } file_owner() { @@ -1570,6 +1568,8 @@ pkg_update() { as_root git pull as_root git submodule update --remote --init -f + + unset user fi # arg1: post-update