From 7af01eeb72e3204e7063cd0afcf3f63cd333a9bd Mon Sep 17 00:00:00 2001 From: Bryan Bennett Date: Wed, 7 Dec 2022 08:04:17 -0500 Subject: [PATCH] Check if "$nixfile" is a file before watching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jörg Thalheim --- direnvrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direnvrc b/direnvrc index 3acb8f7..d3dd839 100644 --- a/direnvrc +++ b/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