Revision 7236
Added by Aaron Marcuse-Kubitza almost 12 years ago
inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub.make | ||
---|---|---|
25 | 25 |
|
26 | 26 |
rowsAdded () |
27 | 27 |
{ |
28 |
test -e "$log_" || { echo "Log does not exist: $log_" >&2; exit;} |
|
28 | 29 |
tail -10 "$log_"|grep -E '^Inserted [1-9][0-9]* new rows into database$' \ |
29 | 30 |
>/dev/null |
30 | 31 |
} |
Also available in: Unified diff
inputs/.TNRS/public.unscrubbed_taxondetermination_view/scrub.make: rowsAdded(): Fixed bug where need to test if log file exists before using it in tail, because if tail fails and causes rowsAdded to return false, this error exit status will be indistinguishable from false for no rows added and the script will keep going