mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Merge pull request #447 from nix-community/direnv-exe-check
don't rely on direnv to be in $PATH
This commit is contained in:
commit
d18f04817a
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