Hey, thanks for your script. Not an issue, more like a feature request:
The script currently requires you to choose whether you want to have an AP or if the PI connect to an existing network.
Some of the raspberry PIs supports dual mode where the PI can be both an AP and a wifi client to another AP.
It would be great if the script offered the option to use this capability.