Fixed a problem with writing to /dev/stderr in some environments, in docker/updatedb.

- Legacy-Id: 18251
This commit is contained in:
Henrik Levkowetz 2020-07-24 13:27:53 +00:00
parent ea7b2e7b7f
commit 9cdd9adbc6

View file

@ -154,5 +154,5 @@ if [ "$DROP" ]; then
diff <(zcat $DATADIR/ietf_utf8.sql.gz | grep '^DROP TABLE IF EXISTS' | tr -d '`;' | awk '{ print $5 }') \
<($parent/ietf/manage.py dbshell <<< 'show tables;' | tail -n +2) \
| grep '^>' | awk '{print "drop table if exists", $2, ";";}' \
| tee /dev/stderr | $parent/ietf/manage.py dbshell
| tee >(cat >&2) | $parent/ietf/manage.py dbshell
fi