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.
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 toNO_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 ifNO_INTERNET
is unset/undefined, the statement can still evaluate.