mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
Merge branch 'master' into update_flake_lock_action
This commit is contained in:
commit
c5b6ca3a13
1 changed files with 1 additions and 1 deletions
2
direnvrc
2
direnvrc
|
|
@ -208,7 +208,7 @@ _nix_direnv_watches() {
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
local regex='"path": "(.+)"$'
|
local regex='"[Pp]ath": "(.+)"$'
|
||||||
if [[ "$line" =~ $regex ]]; then
|
if [[ "$line" =~ $regex ]]; then
|
||||||
local path="${BASH_REMATCH[1]}"
|
local path="${BASH_REMATCH[1]}"
|
||||||
if [[ "$path" == "${XDG_DATA_HOME:-${HOME:-/var/empty}/.local/share}/direnv/allow/"* ]]; then
|
if [[ "$path" == "${XDG_DATA_HOME:-${HOME:-/var/empty}/.local/share}/direnv/allow/"* ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue