Project

General

Profile

« Previous | Next » 

Revision 13985

bugfix: bin/import_all: now that always using log files to fix output clutter, need to delete created logs if logging is turned off

View differences:

trunk/bin/import_all
10 10
    . "$selfDir/with_all" import by_col=1 "$@"
11 11
}
12 12

  
13
delete_logs() { find . -name "n=$n.$version.log.sql" -delete; }
14

  
13 15
main()
14 16
{
15 17
    local self="${BASH_SOURCE[0]}"
......
30 32
    local by_col=${by_col-1} full_import=1
31 33
    export version by_col full_import
32 34
    
35
    if test ! "${log-1}"; then trap delete_logs EXIT SIGINT SIGTERM; fi #log==''
36
    
33 37
    local log=1 # always use log files for background processes
34 38
    
35 39
    # remove any leftover TNRS lockfile. usually, the PID in it would not exist,

Also available in: Unified diff