QSCTech / zjunet

Command Line Scripts for ZJU (VPN / WLAN / DNS)
GNU General Public License v3.0
302 stars 48 forks source link

wlan.sh: remove some possible bashisms in lib/wlan.sh #74

Closed dinoallo closed 4 years ago

dinoallo commented 4 years ago

The shebang line specifies that executing the script using Bourne shell while some of the code uses possible bashisms like "[[" instead of "[" and "==" instead of "=". If a user's /bin/sh is linked to other shells like "dash, ksh, etc...", it might cause an issue for using the program.