1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 16:40:07 -07:00

kiss: Prevent updates as root from running as root unless needed

This commit is contained in:
Dylan Araps 2020-01-30 17:27:26 +02:00
parent 5857dbe9ef
commit 90bc0554f7
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

2
kiss
View File

@ -1019,7 +1019,7 @@ pkg_updates() {
log "$PWD" "$signed "
if [ -w "$PWD" ]; then
if [ -w "$PWD" ] && [ "$(id -u)" != 0 ]; then
git pull
else