commit 90bc0554f7e761491ba6b5569a193d43ecf614dc parent 5857dbe9efdba23453e40cd5cf654f4854d93b88 Author: Dylan Araps <dylan.araps@gmail.com> Date: Thu, 30 Jan 2020 17:27:26 +0200 kiss: Prevent updates as root from running as root unless needed Diffstat:
M | kiss | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kiss b/kiss @@ -1019,7 +1019,7 @@ pkg_updates() { log "$PWD" "$signed " - if [ -w "$PWD" ]; then + if [ -w "$PWD" ] && [ "$(id -u)" != 0 ]; then git pull else