From 1cfc74a04c7a9dce05178ced307a62ea130ff695 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 1 May 2006 18:05:24 +0000 Subject: [PATCH] small bug --- contrib/sql-utility/get-sql.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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