[yocto] [yocto-autobuilder][PATCH] /bin/checkvnc: un-bashify it
Graydon, Tracy
tracy.graydon at intel.com
Fri Sep 9 16:42:29 PDT 2016
Script was using /bin/sh and double brackets were causing an error in nightly-oe-selftest build:
/home/pokybuild/yocto-autobuilder/bin/checkvnc: 6: /home/pokybuild/yocto-autobuilder/bin/checkvnc: [[: not found
Changed double to single brackets to make sh happy.
Signed-off-by: Graydon, Tracy <tracy.graydon at intel.com>
---
bin/checkvnc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bin/checkvnc b/bin/checkvnc
index 574ba48..728031f 100755
--- a/bin/checkvnc
+++ b/bin/checkvnc
@@ -3,7 +3,7 @@
# check if vnc server is running, and if not, cleanup and restart
#
pid=$(pidof Xvnc)
-if [[ $? != 0 ]]; then
+if [ $? != 0 ]; then
echo "Xvnc not running, attempting restart"
vncserver -kill :1
vncserver
--
2.7.0
More information about the yocto
mailing list