diff options
author | Erich Eckner <git@eckner.net> | 2024-01-20 21:04:25 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-01-20 21:04:25 +0100 |
commit | aa09fa014a2165a53d7d1b85c417793bbb0cd571 (patch) | |
tree | ac07f0a6866f690fdd19c81d731a2b06ad99ed71 /shutdownasap.in | |
parent | e899b345fa2df151c9fb5948db7fcd9579f05038 (diff) | |
download | shutdownasap-aa09fa014a2165a53d7d1b85c417793bbb0cd571.tar.xz |
fix pgrep regex
* pgrep needs less escaping than grep
Diffstat (limited to 'shutdownasap.in')
-rwxr-xr-x | shutdownasap.in | 2 |
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 |