Skip to contentSkip to conversation

/bin/checkvnc: un-bashify it

PATCH New Graydon, Tracy 1 participant 1 message Sep 9, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 /bin/checkvnc: un-bashify it

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.

---
 bin/checkvnc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bin/checkvnc +1 -1
index 574ba48..728031f 100755
@@ -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
Signature · 1 line
2.7.0