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

@ -1,2 +1,2 @@
redo test.args test2.args passfailtest
redo test.args test2.args passfailtest noargs/run
. ../skip-if-minimal-do.sh

View file

@ -1 +1 @@
rm -f passfail *~ .*~
rm -f passfail *~ .*~ */*~ */.*~ noargs/all

1
t/100-args/noargs/all.do Normal file
View file

@ -0,0 +1 @@
echo RAN >$3

3
t/100-args/noargs/run.do Normal file
View file

@ -0,0 +1,3 @@
rm -f all
redo-ifchange # should not default to 'all' since not running from top level
[ ! -e all ] || exit 11