Return on complete

This commit is contained in:
Bob Mottram 2016-10-15 10:32:19 +01:00
parent a253b3b65f
commit 93e62eb31a
1 changed files with 3 additions and 3 deletions

View File

@ -323,11 +323,11 @@ function create_networks_interactive {
if [ ${#WIFI_SSID} -gt 1 ]; then if [ ${#WIFI_SSID} -gt 1 ]; then
if [ ${#WIFI_TYPE} -gt 1 ]; then if [ ${#WIFI_TYPE} -gt 1 ]; then
if [[ "${#WIFI_TYPE}" == $'none' || "${#WIFI_TYPE}" == $'open' ]]; then if [[ "${WIFI_TYPE}" == $'none' || "${WIFI_TYPE}" == $'open' ]]; then
wifi_networks_done='yes' return
else else
if [ ${#WIFI_PASSPHRASE} -gt 1 ]; then if [ ${#WIFI_PASSPHRASE} -gt 1 ]; then
wifi_networks_done='yes' return
fi fi
fi fi
fi fi