Skip to content

Commit 89f380f

Browse files
authored
Use portable shebang in .envrc template for NixOS compatibility (#2747)
## 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](https://www.apache.org/licenses/LICENSE-2.0). 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](https://github.com/jetify-com/opensource/blob/main/CONTRIBUTING.md#community-contribution-license).
1 parent a2b6b73 commit 89f380f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.envrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Automatically sets up your devbox environment whenever you cd into this
44
# directory via our direnv integration:

internal/devbox/generate/tmpl/envrc.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

33
# Automatically sets up your devbox environment whenever you cd into this
44
# directory via our direnv integration:

0 commit comments

Comments
 (0)