From e73eb358f0ee0f8f5dd605198c81e9c4ec840c05 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Thu, 23 Jul 2020 19:09:57 +0000 Subject: [PATCH] Reformulated a filter step in docker/updatedb to use a more commonly available command. - Legacy-Id: 18244 --- docker/updatedb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/updatedb b/docker/updatedb index af7bcdb30..7011658e7 100755 --- a/docker/updatedb +++ b/docker/updatedb @@ -151,7 +151,7 @@ fi if [ "$DROP" ]; then echo "Dropping tables not in the dump (so migrations can succeed) ..." - diff <(zcat $DATADIR/ietf_utf8.sql.gz | grep '^DROP TABLE IF EXISTS' | tr -d '`;' | field 5) \ + 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