There are various places where we convert strings to shell scripts. And those assume that the script will be using bash.
Add a bit of logic in nix that checks if the string starts with a shebang. If there is a shebang, write the script as-is. Otherwise, add the bash shebang.
There are various places where we convert strings to shell scripts. And those assume that the script will be using bash.
Add a bit of logic in nix that checks if the string starts with a shebang. If there is a shebang, write the script as-is. Otherwise, add the bash shebang.