summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Hillenbrand <joehillen@gmail.com>2021-09-17 01:40:00 -0700
committerJoe Hillenbrand <joehillen@gmail.com>2021-09-17 01:40:00 -0700
commit9b3b7166c3d7b390cb978852665fe18b62bcbfc5 (patch)
tree2b251dc4cfcaf3b027015b280d5b4391a552483c
parent42d45ab88a11327059b5c8a2d3159950d197b479 (diff)
fix root check
-rwxr-xr-xsysz2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysz b/sysz
index b89c51a..7713595 100755
--- a/sysz
+++ b/sysz
@@ -212,7 +212,7 @@ _sysz_list_units() {
# main
# root doesn't have user units
-if [[ $EUID -ne 0 ]]; then
+if [[ $EUID -eq 0 ]]; then
MANAGERS=(system)
else
MANAGERS=(user system)