Re-Writing an OpenConnect VPN Connect script in Babashka
This is the second of a 2-part series of articles.1 It was updated 2021.005.24 to add the :servercert option to the openconnect command.
The sundries of just handling arguments and options2 was alone so annoying in Bash that I finally used it as an excuse to play with Babashka3, which I’ve been watching eagerly for quite a while. The script itself is small while providing niceties that would have taken much longer, and also more lines of code, to implement in Bash.