mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Check if "$nixfile" is a file before watching
Co-authored-by: Jörg Thalheim <Mic92@users.noreply.github.com>
This commit is contained in:
parent
0db25e4de9
commit
7af01eeb72
1 changed files with 1 additions and 1 deletions
2
direnvrc
2
direnvrc
|
|
@ -337,7 +337,7 @@ use_nix() {
|
|||
done
|
||||
|
||||
nix_direnv_watch_file "$HOME/.direnvrc" "$HOME/.config/direnv/direnvrc" ".envrc"
|
||||
if [ -e "$nixfile" ]; then
|
||||
if [ -f "$nixfile" ]; then
|
||||
nix_direnv_watch_file "$nixfile"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue