lukicdarkoo / rpi-wifi

Configures simultaneous AP and Managed Mode Wifi on Raspberry Pi
GNU General Public License v3.0
535 stars 120 forks source link

NO_INTERNET flag is undefined #7

Closed dalgibbard closed 5 years ago

dalgibbard commented 5 years ago

Regarding this line: https://github.com/lukicdarkoo/rpi-wifi/blob/44589e719976e4b550081d549567a6609c5d8f37/configure#L169

Running the script throws an error when running without defining -n due to NO_INTERNET being unset, causing it to not evaluate, and the && isn't run.

A quick hacky alternative would be: [ "x${NO_INTERNET}" = "xtrue" ] As this way, even if NO_INTERNET is unset/undefined, the statement can still evaluate.