Skip to content

Commit

Permalink
Add support for no-restart env variable (#15)
Browse files Browse the repository at this point in the history
Ref #9 
Add script support for `no-restart` env var
  • Loading branch information
andrewvious authored Aug 7, 2024
1 parent 6e809e1 commit fd95186
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions nix-watch.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit fd95186

Please sign in to comment.