summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-01-20 21:04:25 +0100
committerErich Eckner <git@eckner.net>2024-01-20 21:04:25 +0100
commitaa09fa014a2165a53d7d1b85c417793bbb0cd571 (patch)
treeac07f0a6866f690fdd19c81d731a2b06ad99ed71
parente899b345fa2df151c9fb5948db7fcd9579f05038 (diff)
downloadshutdownasap-aa09fa014a2165a53d7d1b85c417793bbb0cd571.tar.xz
fix pgrep regex
* pgrep needs less escaping than grep
-rwxr-xr-xshutdownasap.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/shutdownasap.in b/shutdownasap.in
index 8912543..672e704 100755
--- a/shutdownasap.in
+++ b/shutdownasap.in
@@ -117,7 +117,7 @@ do
for s in "${!shutDownNoGoProcesses[@]}"
do
- if pgrep -af "\(\s\|/\)${shutDownNoGoProcesses[${s}]}\(\$\|\s\)"
+ if pgrep -af "(\s|/)${shutDownNoGoProcesses[${s}]}(\$|\s)"
then
nochwarten=true
if ! ${quiet}; then