index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/show-dependencies | 10 |
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.' |