Merge pull request #27 from nix-community/strict-env

fix direnv strict_env evaluation
This commit is contained in:
Jörg Thalheim 2020-07-09 14:17:24 +01:00 committed by GitHub
commit 529e6fcf96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"