mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-12-09 18:41:12 +01:00
Merge pull request #212 from amarshall/strict-env
Fix error with strict_env
This commit is contained in:
commit
9c3b0d5f8b
1 changed files with 1 additions and 1 deletions
2
direnvrc
2
direnvrc
|
|
@ -100,7 +100,7 @@ _nix_import_env() {
|
|||
# as it may be garbage collected.
|
||||
# Instead - just remove it immediately.
|
||||
# Use recursive & force as it may not be empty.
|
||||
if [[ "$NIX_BUILD_TOP" == */nix-shell.* && -d "$NIX_BUILD_TOP" ]]; then
|
||||
if [[ -n "${NIX_BUILD_TOP+x}" && "$NIX_BUILD_TOP" == */nix-shell.* && -d "$NIX_BUILD_TOP" ]]; then
|
||||
rm -rf "$NIX_BUILD_TOP"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue