Project

General

Profile

« Previous | Next » 

Revision 7022

pg_dump_vegbien: Renamed $opts env var to $dump_opts to avoid conflicting with other commands' vars of the same name

View differences:

bin/import_all
47 47
        bin/make_analytical_db
48 48
        
49 49
        make backups/TNRS.backup-remake &
50
        make backups/vegbien.$version.backup/test opts=--exclude-schema=public &
50
        make backups/vegbien.$version.backup/test \
51
        dump_opts=--exclude-schema=public &
51 52
        wait # wait for asynchronous commands
52 53
    }
53 54
    
bin/pg_dump_vegbien
4 4
selfDir="$(dirname -- "$0")"
5 5

  
6 6
if ! test "$#" -eq 1; then
7
    echo "Usage: env [schema=1] [data=1] [plain=1] [owners=1] [opts=...] $0 \
8
{<schema>|all} [opts...] >out"|fold -s >&2
7
    echo "Usage: env [schema=1] [data=1] [plain=1] [owners=1] [dump_opts=...] \
8
$0 {<schema>|all} [opts...] >out"|fold -s >&2
9 9
    exit 2
10 10
fi
11 11
: "${schema=1}"
......
24 24
    test -n "$schema" && set -- "$@" --schema-only
25 25
fi
26 26
test -n "$owners" || set -- "$@" --no-owner
27
set -- "$@" $opts
27
set -- "$@" $dump_opts
28 28

  
29 29
pg_dump ()
30 30
{

Also available in: Unified diff