Skip to content

Commit 1691154

Browse files
authored
Merge pull request #394 from nix-community/fix-unbound-variable
fix _nix_direnv_force_reload not beeing bound
2 parents a929b6b + ac9cd95 commit 1691154

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

direnvrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ use_flake() {
233233
|| "$need_update" == "1"
234234
]];
235235
then
236-
if [[ "$_nix_direnv_manual_reload" == "1" && -z "$_nix_direnv_force_reload" ]]; then
236+
if [[ "$_nix_direnv_manual_reload" == "1" && -z "${_nix_direnv_force_reload-}" ]]; then
237237
if [[ -e "$profile_rc" ]]; then
238238
log_status "nix-direnv: cache is out of date. use \"nix-direnv-reload\" to reload"
239239
else
@@ -388,7 +388,7 @@ use_nix() {
388388
|| "$need_update" -eq "1"
389389
]];
390390
then
391-
if [[ "$_nix_direnv_manual_reload" == "1" && -z "$_nix_direnv_force_reload" ]]; then
391+
if [[ "$_nix_direnv_manual_reload" == "1" && -z "${_nix_direnv_force_reload-}" ]]; then
392392
if [[ -e "$profile_rc" ]]; then
393393
log_status "nix-direnv: cache is out of date. use \"nix-direnv-reload\" to reload"
394394
else

0 commit comments

Comments
 (0)