Skip to content

Commit

Permalink
fix: unbound variable (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
blaggacao committed Jun 21, 2023
1 parent 1da60ad commit dacceb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hooks/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
PS4='+ Line $(expr $LINENO + 4): '
if [[ ''${NIXAGO_LOG-1} -gt 0 ]]; then
if [[ -n $NIXAGO_LOG_FORMAT ]]; then
if [[ -n ''${NIXAGO_LOG_FORMAT-} ]]; then
nixago_log_format="''${NIXAGO_LOG_FORMAT}"
elif [[ -n $DIRENV_LOG_FORMAT ]]; then
elif [[ -n ''${DIRENV_LOG_FORMAT-} ]]; then
nixago_log_format="''${DIRENV_LOG_FORMAT/direnv/nixago}"
else
nixago_log_format=$'\E[mnixago: \E[38;5;8m%s\E[m'
Expand Down

0 comments on commit dacceb1

Please sign in to comment.