redo-ifchange regression: if REDO_LOG is not set, assume it's 1.

At some point this got broken during a refactoring.  The result was
that redo-ifchange, run from the command line (as opposed to inside a
.do script) would fail to start the log prettifier.
This commit is contained in:
Avery Pennarun 2019-03-02 03:18:17 -05:00
commit 8a97b0cb2c
5 changed files with 7 additions and 3 deletions

View file

@ -35,7 +35,7 @@ class Env(object):
self.VERBOSE = _get_bool('REDO_VERBOSE', '')
self.XTRACE = _get_bool('REDO_XTRACE', '')
self.KEEP_GOING = _get_bool('REDO_KEEP_GOING', '')
self.LOG = _get_int('REDO_LOG', '')
self.LOG = _get_int('REDO_LOG', '1')
self.LOG_INODE = _get('REDO_LOG_INODE', '')
self.COLOR = _get_int('REDO_COLOR', '')
self.PRETTY = _get_int('REDO_PRETTY', '')