Correct pkill call

This commit is contained in:
Dan Hawkins 2018-09-17 00:22:21 +01:00
commit 36dffd80e6

View file

@ -5,10 +5,10 @@ def doKillLeftovers() {
# Killing any processes that may interfere with the next build # Killing any processes that may interfere with the next build
# The build system must be setup to do more than one eclipse build concurrently # The build system must be setup to do more than one eclipse build concurrently
USER=`whoami` USER=`whoami`
pgrep -U "${USER}" "eclipse" pgrep -U "${USER}" "eclipse" || true
pgrep -U "${USER}" "eclipsews" pgrep -U "${USER}" "eclipsews" || true
pgrep -U "${USER}" "make" pgrep -U "${USER}" "make" || true
pgrep -U "${USER}" "arm-linux" pgrep -U "${USER}" "arm-linux" || true
# Don't return an error if the processes don't exist # Don't return an error if the processes don't exist
pkill -U "${USER}" -9 eclipse || true pkill -U "${USER}" -9 eclipse || true
pkill -U "${USER}" -9 eclipsews || true pkill -U "${USER}" -9 eclipsews || true