Project

General

Profile

« Previous | Next » 

Revision 7121

import_all: Made temporary vars local, so they wouldn't affect the calling shell

View differences:

bin/import_all
21 21
    
22 22
    make schemas/$version/install
23 23
    
24
    all=1; . "$selfDir/with_all" Source/import by_col=1 "$@"
24
    local all=1; . "$selfDir/with_all" Source/import by_col=1 "$@"
25 25
        # note that this isn't affected by $import_source
26 26
    wait # wait for asynchronous commands
27 27
    unset all
......
55 55
        wait # wait for asynchronous commands
56 56
    }
57 57
    
58
    jobs="$(jobs -p)"
58
    local jobs="$(jobs -p)"
59 59
    (bin/waitpid $jobs; after_import) &
60 60
}
61 61
import_all_main "$@"

Also available in: Unified diff