Skip to content

Commit

Permalink
Add NIX_WATCH_PRINT_BUILD_LOGS env var (#23)
Browse files Browse the repository at this point in the history
Ref #9 

Adds the ability to declare `NIX_WATCH_PRINT_BUILD_LOGS` environment
variable.
  • Loading branch information
eureka-cpu authored Aug 20, 2024
1 parent 22ecf25 commit 35ade1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nix-watch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ let
fi
COMMAND=$(process_args "''${COMMAND[@]}")
fi
if [ "$PRINT_BUILD_LOGS" == true ]; then
if [[ "$PRINT_BUILD_LOGS" == false && -n "$NIX_WATCH_PRINT_BUILD_LOGS" ]]; then
PRINT_BUILD_LOGS=$(convert_int_to_bool $NIX_WATCH_PRINT_BUILD_LOGS)
fi
if [[ "$PRINT_BUILD_LOGS" == true ]]; then
COMMAND+=("-L")
fi
if [[ -n ''${SHELL_ARGS[@]} ]]; then
Expand Down

0 comments on commit 35ade1e

Please sign in to comment.