Procházet zdrojové kódy

Return on complete

Bob Mottram před 8 roky
rodič
revize
93e62eb31a
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      src/freedombone-wifi

+ 3
- 3
src/freedombone-wifi Zobrazit soubor

@@ -323,11 +323,11 @@ function create_networks_interactive {
323 323
 
324 324
         if [ ${#WIFI_SSID} -gt 1 ]; then
325 325
             if [ ${#WIFI_TYPE} -gt 1 ]; then
326
-                if [[ "${#WIFI_TYPE}" == $'none' || "${#WIFI_TYPE}" == $'open' ]]; then
327
-                    wifi_networks_done='yes'
326
+                if [[ "${WIFI_TYPE}" == $'none' || "${WIFI_TYPE}" == $'open' ]]; then
327
+                    return
328 328
                 else
329 329
                     if [ ${#WIFI_PASSPHRASE} -gt 1 ]; then
330
-                        wifi_networks_done='yes'
330
+                        return
331 331
                     fi
332 332
                 fi
333 333
             fi