From aa09fa014a2165a53d7d1b85c417793bbb0cd571 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 20 Jan 2024 21:04:25 +0100 Subject: fix pgrep regex * pgrep needs less escaping than grep --- shutdownasap.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shutdownasap.in') 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 -- cgit v1.2.3-70-g09d2