small bug

This commit is contained in:
sparkyx 2006-05-01 18:05:24 +00:00
parent 52db1d8163
commit 1cfc74a04c

View file

@ -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