Commit d9c9f17
authored
[RFC][Devbox] computeEnv: remove __ETC_PROFILE_NIX_SOURCED=1 (#2147)
## Summary
This was introduced in #635 (cc @ipince). I don't think its needed
anymore.
It seems to be used in the
`/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh` script, at
the very top to prevent re-execution:
```
1 # Only execute this file once per shell.
2 if [ -n "${__ETC_PROFILE_NIX_SOURCED:-}" ]; then return; fi
3 __ETC_PROFILE_NIX_SOURCED=1
4
```
Perhaps it has other use-cases as well? RFC.
From my casual usage of a Devbox binary built with this change, it all
seems to still work fine.
## How was it tested?1 parent 3aac497 commit d9c9f17
2 files changed
+0
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
892 | 892 | | |
893 | 893 | | |
894 | 894 | | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | 895 | | |
900 | 896 | | |
901 | 897 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 14 | | |
19 | 15 | | |
20 | 16 | | |
| |||
0 commit comments