Project

General

Profile

« Previous | Next » 

Revision 11430

bugfix: bin/import_all: restore the working dir when main() is done, in case it started as something other than the root dir

View differences:

import_all
7 7
{
8 8
    local self="${BASH_SOURCE[0]}"
9 9
    local selfDir="$(dirname -- "$self")"
10
    cd "$selfDir/.."
10
    pushd "$selfDir/.."
11 11
    
12 12
    if test "${BASH_LINENO[1]}" = 0; then # was run without initial "."
13 13
        echo "usage: [version=...] [inputs=(inputs/src/ ...)]; . $self \
......
52 52
    echo "after_import PID: $!" >&2
53 53
    
54 54
    . bin/disown_all
55
    
56
    popd
55 57
}
56 58
main "$@"

Also available in: Unified diff