Skip to content

Commit e73eb35

Browse files
committed
Reformulated a filter step in docker/updatedb to use a more commonly available command.
- Legacy-Id: 18244
1 parent 9f812ca commit e73eb35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docker/updatedb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ fi
151151

152152
if [ "$DROP" ]; then
153153
echo "Dropping tables not in the dump (so migrations can succeed) ..."
154-
diff <(zcat $DATADIR/ietf_utf8.sql.gz | grep '^DROP TABLE IF EXISTS' | tr -d '`;' | field 5) \
154+
diff <(zcat $DATADIR/ietf_utf8.sql.gz | grep '^DROP TABLE IF EXISTS' | tr -d '`;' | awk '{ print $5 }') \
155155
<($parent/ietf/manage.py dbshell <<< 'show tables;' | tail -n +2) \
156156
| grep '^>' | awk '{print "drop table if exists", $2, ";";}' \
157157
| tee /dev/stderr | $parent/ietf/manage.py dbshell

0 commit comments

Comments
 (0)