diff --git a/contrib/sql-utility/get-sql.sh b/contrib/sql-utility/get-sql.sh index abd19cb03..a67bc48f6 100755 --- a/contrib/sql-utility/get-sql.sh +++ b/contrib/sql-utility/get-sql.sh @@ -12,11 +12,11 @@ _eof } -if [ $# -le 2 ]; then +if [ $# -lt 2 ]; then Help fi case "$1" in -f) - awk '/CREATE FUNCTION/,/LANGUAGE/ { print $0;}' |pg_dump -s "$2" + pg_dump -s "$2"|awk '/CREATE FUNCTION/,/LANGUAGE/ { print $0;}' esac