<p dir="ltr">an empty statement in shell is ':' I.e. a single colon . put this after the then on its own line</p>
<div class="gmail_quote">On 6 Jan 2014 20:17, "Jean van Wyngaardt" <<a href="mailto:gabrieldrumming@gmail.com">gabrieldrumming@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>Hey guys</div><div><br></div><div>Working out this VPN script and it won't run because of line 7 (highlighted in bold below). Seeing as my scripting knowledge is limited, I thought I might check with you!</div>
<div><br></div><div><pre style="margin-top:0px;margin-bottom:0px;padding:6px;font-family:'Ubuntu Mono',monospace;line-height:14px;word-wrap:normal;border:1px inset;text-align:left;overflow:auto;direction:ltr;background-image:none;background-color:rgb(239,239,239);font-size:14px;min-height:156px;background-repeat:repeat no-repeat">
#!/bin/sh
while [ "true" ]
do
    vpnck=$(nmcli con status uuid 3e46a1d0-ab02-4d69-bd36-31dfcc01af6d)
    if [[ $vpnck == *cryptocloud* ]]
    then
    <b>else</b>
      (sleep 1s && nmcli con up uuid 3e46a1d0-ab02-4d69-bd36-31dfcc01af6d)
    fi
    sleep 20
done</pre><div><br></div></div><br><div>

Jean
<br>
<br>
<font color="#595050">
<strong>Jean van Wyngaardt</strong>
<br>
<br>
<a href="tel:07599%20428068" value="+447599428068" target="_blank">07599 428068</a>
<br>
<a href="mailto:info@jeangabriel.co.uk" target="_blank">info@jeangabriel.co.uk</a>
<br>
<a href="http://runlevel.co.uk" target="_blank">http://runlevel.co.uk</a>
<br>
<a href="http://mactribe.co.uk" target="_blank">http://mactribe.co.uk</a>
</font>

</div>
<br></div><br>_______________________________________________<br>
GLLUG mailing list<br>
<a href="mailto:GLLUG@mailman.lug.org.uk">GLLUG@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/gllug" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/gllug</a><br>
<br></blockquote></div>