1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-11-04 14:05:41 -07:00

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

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