mirror of
https://github.com/nix-community/nix-direnv.git
synced 2024-08-16 23:10:24 +03: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
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…
Reference in New Issue
Block a user