Project

General

Profile

« Previous | Next » 

Revision 11870

bugfix: bin/pg_dump_limit: support errexit by ignoring the nonzero exit status that grep returns when it doesn't match anything

View differences:

bin/pg_dump_limit
2 2
# Filters a PostgreSQL DB dump to remove security and schema-setting commands
3 3
# Usage: self {input...|<input} >translated
4 4

  
5
grep -v -E '^(CREATE DATABASE|SET search_path|GRANT|REVOKE)' "$@"
5
grep -v -E '^(CREATE DATABASE|SET search_path|GRANT|REVOKE)' "$@" || true

Also available in: Unified diff