kiss: fix bug where second command has user reset

This commit is contained in:
Dylan Araps 2021-07-15 22:48:06 +03:00
parent b1332a309a
commit 8315dd3ddc
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 2 additions and 2 deletions

4
kiss
View File

@ -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