From b43c15961230a853bd239181d3139eeee9477b61 Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Thu, 30 Jan 2020 15:27:26 +0000 Subject: kiss: Prevent updates as root from running as root unless needed FossilOrigin-Name: a9020fb53a671984457bf2aeb2d4bcab6110df26b5fb8f9122c494aef60b0d9f --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kiss') diff --git a/kiss b/kiss index 5605bae..2915567 100755 --- 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 -- cgit v1.2.3