summaryrefslogtreecommitdiff
path: root/slockd
diff options
context:
space:
mode:
Diffstat (limited to 'slockd')
-rwxr-xr-xslockd2
1 files changed, 1 insertions, 1 deletions
diff --git a/slockd b/slockd
index 64fefb6..e1db6cc 100755
--- a/slockd
+++ b/slockd
@@ -1,6 +1,6 @@
#!/bin/sh
-WLCNT="$(pgrep -U$(whoami) -x slockd | wc -l)"
+WLCNT="$(pgrep -U"$(whoami)" -x slockd | wc -l)"
[ "${WLCNT:-0}" -gt "2" ] && printf "Already running!\n" && exit
while true; do