Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/show-dependencies10
1 files changed, 3 insertions, 7 deletions
diff --git a/bin/show-dependencies b/bin/show-dependencies
index 7d291e0..a3b32bc 100755
--- a/bin/show-dependencies
+++ b/bin/show-dependencies
@@ -95,13 +95,9 @@ if [ $# -eq 0 ]; then
exit
fi
-# shellcheck disable=SC2009
-if ps ax | \
- grep -v grep | \
- grep -v "^\s*$$\s" | \
- grep -wF "$0$(
- printf ' %s' "$@"
- )"; then
+
+if pgrep -f "^\S+ $0." | \
+ grep -vxF "$$" >&2; then
>&2 echo $$
>&2 echo 'I was running already.'