diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-30 15:27:26 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-01-30 15:27:26 +0000 |
commit | b43c15961230a853bd239181d3139eeee9477b61 (patch) | |
tree | b6e219a45c083750a447918c14cb06a32b4860ff /kiss | |
parent | 82f5735ece844f3f876886a0cb2bdfea22a36b1a (diff) | |
download | cpt-b43c15961230a853bd239181d3139eeee9477b61.tar.gz |
kiss: Prevent updates as root from running as root unless needed
FossilOrigin-Name: a9020fb53a671984457bf2aeb2d4bcab6110df26b5fb8f9122c494aef60b0d9f
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1019,7 +1019,7 @@ pkg_updates() { log "$PWD" "$signed " - if [ -w "$PWD" ]; then + if [ -w "$PWD" ] && [ "$(id -u)" != 0 ]; then git pull else |