aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-30 15:27:26 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-01-30 15:27:26 +0000
commitb43c15961230a853bd239181d3139eeee9477b61 (patch)
treeb6e219a45c083750a447918c14cb06a32b4860ff
parent82f5735ece844f3f876886a0cb2bdfea22a36b1a (diff)
downloadcpt-b43c15961230a853bd239181d3139eeee9477b61.tar.gz
kiss: Prevent updates as root from running as root unless needed
FossilOrigin-Name: a9020fb53a671984457bf2aeb2d4bcab6110df26b5fb8f9122c494aef60b0d9f
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
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