提交 fd9329f0 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

better script output

上级 931aa1c4
......@@ -3,20 +3,17 @@
[ "$(which Xvfb)" = "" ] && {
sudo apt-get -qq update
sudo apt-get -qqy install xvfb
echo "Xvfb installed"
}
[ "$DISPLAY" = "" ] && {
export DISPLAY=':99.0'
echo "export DISPLAY=$DISPLAY"
echo "Install Xvfb done"
}
[ "$(ps a | grep Xvfb | grep -v grep | wc -l)" = 0 ] && {
Xvfb :99 -screen 0 640x480x8 > /dev/null 2>&1 &
echo "Xvfb started"
echo "Start Xvfb done"
}
echo
echo "export DISPLAY=:99.0"
[ "$DISPLAY" = "" ] && {
export DISPLAY=':99.0'
echo "Set DISPLAY=:99.0 done"
}
echo "Xvfb ready."
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册