Do not use local -n

* zsh on macOS (the default shell) apparently does not support `local
  -n` and will error out if used
This commit is contained in:
Ivan Petkov 2023-11-28 17:08:08 -08:00
parent 6f38bdb647
commit 1293c09ab0
No known key found for this signature in database
GPG key ID: BB6F9EFC065832B6

View file

@ -204,7 +204,7 @@ nix_direnv_watch_file() {
} }
_nix_direnv_watches() { _nix_direnv_watches() {
local -n _watches=$1 local _watches=$1
if [[ -z "${DIRENV_WATCHES-}" ]]; then if [[ -z "${DIRENV_WATCHES-}" ]]; then
return return
fi fi