mirror of https://github.com/docker/docs.git
Fix dockerize-disk.sh working in non-en locale
One part of script relies on messages that are output by some system tool. In non-en locale those messages get localized which breaks the script. This patch enforces en locale for that system tool. Signed-off-by: Maxim Kulkin <maxim.kulkin@gmail.com>
This commit is contained in:
parent
9356c76d9f
commit
8630ad1530
|
@ -74,7 +74,7 @@ mount -t aufs -o "br=$builddir/diff=rw${base_image_mounts},dio,xino=/dev/shm/auf
|
||||||
|
|
||||||
# Update files
|
# Update files
|
||||||
cd $builddir
|
cd $builddir
|
||||||
diff -rq disk_image workdir \
|
LC_ALL=C diff -rq disk_image workdir \
|
||||||
| sed -re "s|Only in workdir(.*?): |DEL \1/|g;s|Only in disk_image(.*?): |ADD \1/|g;s|Files disk_image/(.+) and workdir/(.+) differ|UPDATE /\1|g" \
|
| sed -re "s|Only in workdir(.*?): |DEL \1/|g;s|Only in disk_image(.*?): |ADD \1/|g;s|Files disk_image/(.+) and workdir/(.+) differ|UPDATE /\1|g" \
|
||||||
| while read action entry; do
|
| while read action entry; do
|
||||||
case "$action" in
|
case "$action" in
|
||||||
|
|
Loading…
Reference in New Issue