A bash script for templating out scripts that contain secrets and running them.
You want to write a script that needs to contain a password in the script file itself. But you want to commit the script file to git, and don't want to commit the password to git. The idea is that you:
- Create a
myscript.envsubstfile containing your script with
$PASSWORDwherever you want the password to appear in