We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4ff48c commit 29c9607Copy full SHA for 29c9607
plugins/is-process-running
@@ -1,6 +1,8 @@
1
#!/bin/sh
2
-# Simply checks if the specified process name is currently running.
+# Checks if any of the specified processes are currently running.
3
# Mark Blakeney, Jul 2020.
4
5
-[ "$(pgrep -c "$1")" -gt 0 ] && exit 254
+for proc in "$@"; do
6
+ [ "$(pgrep -c -x "$proc")" -gt 0 ] && exit 254
7
+done
8
exit 0
setup.py
@@ -11,7 +11,7 @@
11
12
setup(
13
name=name,
14
- version='1.14',
+ version='1.15',
15
description='Program to run plugins to inhibit system '
16
'sleep/suspend/hibernate',
17
long_description=here.joinpath('README.md').read_text(),
0 commit comments