While there is some utility in exposing the whole script as a README, is easier to deploy this and/or write an installer script if any scripts are kept as separate files. Then users can run / download something on their wsl instances that can automatically pull the latest bash shim and set it as their root user's shell.
Also mentioning this as I have a few other utilities that I've written for wsl2 (https://github.com/madumlao/wsl2-tools) there is probably some utility in combining the work for these.
While there is some utility in exposing the whole script as a README, is easier to deploy this and/or write an installer script if any scripts are kept as separate files. Then users can run / download something on their wsl instances that can automatically pull the latest bash shim and set it as their root user's shell.
Also mentioning this as I have a few other utilities that I've written for wsl2 (https://github.com/madumlao/wsl2-tools) there is probably some utility in combining the work for these.