psql wants --set=VARNAME=VALUE, we had -set VARNAME=VALUE; tested this
fix and it works with PostgreSQL 9.0.
Signed-off-by: Dan Scott <dscott@laurentian.ca>
for (( i=0; i<$COUNT; i++ )) ; do
echo "* Applying ${FILES[$i]}" >&3; # to the main script STDOUT
cat ${FILES[$i]}; # to the psql pipe
- done | psql -set eg_version="'$EGVERSION'" $PSQL_ACCESS ;
+ done | psql --set=eg_version="'$EGVERSION'" $PSQL_ACCESS ;
else
echo "* Nothing to update";
fi