Commit 69e3321e authored by Dmitry Blinov's avatar Dmitry Blinov

adapt to set -e

parent 9f8099a5
......@@ -369,10 +369,9 @@ depends =
# ${xserver:location}/bin/Xvfb -noreset +extension GLX +extension RANDR +extension RENDER :99 &
pre-build =
PID=`pgrep -u "$(whoami)" -f -x '${xserver:location}/bin/Xorg.*'`
PID=`pgrep -u "$(whoami)" -f -x '${xserver:location}/bin/Xorg.*'` || true #pgrep returns 1 on notfound
echo 'I GOT THROUGH PID'
echo " PID is $PID "
echo "other possibly different PID is `pgrep -f vfb` "
echo "my own process is $$"
echo "my command name is `ps -ly $$`"
if [ ! -z "$PID" ]; then kill -TERM $PID; fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment