node-supervisor icon indicating copy to clipboard operation
node-supervisor copied to clipboard

-n success does not work

Open jhfoo opened this issue 10 years ago • 2 comments
trafficstars

Looking at the code it seems to handle only "exit" and "error" but not "success".

jhfoo avatar Nov 22 '15 02:11 jhfoo

Proposing the simple fix to the above (line 335): if (noRestartOn == "success" && code == 0 || noRestartOn == "exit" || noRestartOn == "error" && code !== 0) return;

jhfoo avatar Nov 22 '15 02:11 jhfoo

Hi, Thanks for the feedback, will look into it when I find some time.

petruisfan avatar Nov 23 '15 06:11 petruisfan