Skip to content
Snippets Groups Projects

check requirements - update ps params

Merged Hahn Axel (hahn) requested to merge add-check-requirement into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -93,10 +93,10 @@ function newline(){
}
# check in process list
# param string regex to search for in output of "ps x"
# param string regex to search for in output of "ps aux"
function chkProcess(){
local label="$1"
test -z "$PROCESSES" && PROCESSES=$( ps x )
test -z "$PROCESSES" && PROCESSES=$( ps aux )
COUNT+=1
local found=$( echo "$PROCESSES" | grep -v "grep" | grep -v "$self" | grep -E "$label" )
if [ -z "$found" ]; then
Loading