mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 11:36:11 +01:00
don't rely on direnv to be in $PATH
fixes https://github.com/nix-community/nix-direnv/issues/446
This commit is contained in:
parent
499255d018
commit
1d3d8b61e7
1 changed files with 2 additions and 1 deletions
3
direnvrc
3
direnvrc
|
|
@ -63,7 +63,8 @@ _nix_direnv_preflight() {
|
|||
# instead of _require_cmd_version because _require_cmd_version uses =~ operator which
|
||||
# would be a syntax error on bash < 3
|
||||
_require_version bash "$BASH_VERSION" "$BASH_MIN_VERSION"
|
||||
_require_cmd_version direnv "$DIRENV_MIN_VERSION"
|
||||
# direnv stdlib defines $direnv
|
||||
_require_cmd_version "$direnv" "$DIRENV_MIN_VERSION"
|
||||
_require_cmd_version nix "$NIX_MIN_VERSION"
|
||||
|
||||
local layout_dir
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue