summaryrefslogtreecommitdiff
path: root/src/pm-action.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/pm-action.in')
-rw-r--r--src/pm-action.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pm-action.in b/src/pm-action.in
index 3872853..a6ea68c 100644
--- a/src/pm-action.in
+++ b/src/pm-action.in
@@ -38,7 +38,7 @@ help()
exit 0
}
-if [ -n "$EUID" -a "$EUID" != "0" ]; then
+if [ "$(id -u)" != "0" ]; then
echo This utility may only be run by the root user. 1>&2
exit 1
fi