mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
fix(direnvrc): log when nix-shell not found
This commit is contained in:
parent
a6450eb68c
commit
c3ea50a6de
1 changed files with 4 additions and 0 deletions
4
direnvrc
4
direnvrc
|
|
@ -11,6 +11,10 @@ _nix_direnv_preflight () {
|
|||
|
||||
if [[ -z ${NIX_BIN_PREFIX:-} ]]; then
|
||||
NIX_BIN_PREFIX=$(command -v nix-shell)
|
||||
if [[ -z "${NIX_BIN_PREFIX}" ]]; then
|
||||
log_status "nix-direnv: command not found: nix-shell."
|
||||
exit 1
|
||||
fi
|
||||
NIX_BIN_PREFIX="${NIX_BIN_PREFIX%/*}/"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue