From f28d694879239d5d9c319185a278236d317a49b6 Mon Sep 17 00:00:00 2001 From: zachir Date: Sat, 30 Aug 2025 01:09:18 -0500 Subject: Make sh scrips POSIX compliant Using shellcheck, I went through all of them to make them standards compliant. I also tested as many as I could. --- slockd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slockd') 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 -- cgit v1.2.3