Awesome script. Very helpful. So good that I did a responsive adaptation for it: github.com/vmassuchetto/smbwebclient
Small modification, line 1471, added two spaces, one before each of the 2's to give ' 2>/dev/null' : ' 2>&1'; Very difficult to spot but fixed my issue. Otherwise a very useful piece of software.
Thanks for good program!