Skip to content

Commit

Permalink
Merge pull request #394 from nix-community/fix-unbound-variable
Browse files Browse the repository at this point in the history
fix _nix_direnv_force_reload not beeing bound
  • Loading branch information
mergify[bot] authored Oct 9, 2023
2 parents a929b6b + ac9cd95 commit 1691154
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions direnvrc
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ use_flake() {
|| "$need_update" == "1"
]];
then
if [[ "$_nix_direnv_manual_reload" == "1" && -z "$_nix_direnv_force_reload" ]]; then
if [[ "$_nix_direnv_manual_reload" == "1" && -z "${_nix_direnv_force_reload-}" ]]; then
if [[ -e "$profile_rc" ]]; then
log_status "nix-direnv: cache is out of date. use \"nix-direnv-reload\" to reload"
else
Expand Down Expand Up @@ -388,7 +388,7 @@ use_nix() {
|| "$need_update" -eq "1"
]];
then
if [[ "$_nix_direnv_manual_reload" == "1" && -z "$_nix_direnv_force_reload" ]]; then
if [[ "$_nix_direnv_manual_reload" == "1" && -z "${_nix_direnv_force_reload-}" ]]; then
if [[ -e "$profile_rc" ]]; then
log_status "nix-direnv: cache is out of date. use \"nix-direnv-reload\" to reload"
else
Expand Down

0 comments on commit 1691154

Please sign in to comment.