devbox
devbox copied to clipboard
Use portable shebang in .envrc template for NixOS compatibility
Summary
NixOS does not have /bin/bash, so generated .envrc doesn't work. This changes /bin/bash to portable /usr/bin/env bash.
How was it tested?
Ran go build -o ./devbox-test ./cmd/devbox && ./devbox-test generate direnv && direnv reload && cat .envrc
Community Contribution License
All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 License.
By creating this pull request, I represent that I have the right to license the contributions to the project maintainers under the Apache 2 License as stated in the Community Contribution License.