Project

General

Profile

« Previous | Next » 

Revision 7084

inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub.make: Factored new rows added test out into rowsAdded() function

View differences:

inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub.make
12 12
log_="$(make -s "$selfDirName"/log_file)"
13 13
exec >>"$log_" 2>&1
14 14

  
15
rowsAdded ()
16
{
17
    tail -10 "$log_"|grep -E '^Inserted [1-9][0-9]* new rows into database$' \
18
        >/dev/null
19
}
20

  
15 21
while true; do
16 22
    make "$selfDirName"/import
17 23
    
18 24
    # Stop if no new rows added
19
    tail -10 "$log_"|grep -E '^Inserted [1-9][0-9]* new rows into database$' \
20
        >/dev/null || break
25
    rowsAdded || break
21 26
done

Also available in: Unified diff