mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Merge pull request #27 from nix-community/strict-env
fix direnv strict_env evaluation
This commit is contained in:
commit
529e6fcf96
1 changed files with 1 additions and 1 deletions
2
direnvrc
2
direnvrc
|
|
@ -11,7 +11,7 @@ use_nix() {
|
||||||
|
|
||||||
local version
|
local version
|
||||||
if [[ -f "${path}/.version-suffix" ]]; then
|
if [[ -f "${path}/.version-suffix" ]]; then
|
||||||
read -r version < "${path}/.version-suffix"
|
version=$(< "${path}/.version-suffix")
|
||||||
elif [[ -f "${path}/.git/HEAD" ]]; then
|
elif [[ -f "${path}/.git/HEAD" ]]; then
|
||||||
local head
|
local head
|
||||||
read -r head < "${path}/.git/HEAD"
|
read -r head < "${path}/.git/HEAD"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue