forked from kiss-community/kiss
kiss: fix bug where second command has user reset
This commit is contained in:
parent
b1332a309a
commit
8315dd3ddc
4
kiss
4
kiss
@ -79,8 +79,6 @@ as_root() {
|
|||||||
die "Invalid KISS_SU value: '$cmd_su' (valid: doas, sudo, ssu, su)"
|
die "Invalid KISS_SU value: '$cmd_su' (valid: doas, sudo, ssu, su)"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
unset user
|
|
||||||
}
|
}
|
||||||
|
|
||||||
file_owner() {
|
file_owner() {
|
||||||
@ -1570,6 +1568,8 @@ pkg_update() {
|
|||||||
|
|
||||||
as_root git pull
|
as_root git pull
|
||||||
as_root git submodule update --remote --init -f
|
as_root git submodule update --remote --init -f
|
||||||
|
|
||||||
|
unset user
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# arg1: post-update
|
# arg1: post-update
|
||||||
|
Loading…
Reference in New Issue
Block a user