diff --git a/nix-watch.nix b/nix-watch.nix index 6b04ba5..82230b3 100644 --- a/nix-watch.nix +++ b/nix-watch.nix @@ -228,6 +228,10 @@ let DEBUG=$(convert_int_to_bool $NIX_WATCH_DEBUG) fi + if [[ "$NO_RESTART" == false && -n "$NIX_WATCH_NO_RESTART" ]]; then + NO_RESTART=$(convert_int_to_bool $NIX_WATCH_NO_RESTART) + fi + # Temporary file to store the PID of the running command PID_FILE="/tmp/nix-watch/$(basename "$0").pid" debug "PID filepath: ''${ANSI_BLUE}$PID_FILE''${ANSI_RESET}"