OSDN Git Service

[docker] Fix unmatched quote problem in here-document on older versions of bash
authorDon Hinton <hintonda@gmail.com>
Mon, 31 Jul 2017 15:18:57 +0000 (15:18 +0000)
committerDon Hinton <hintonda@gmail.com>
Mon, 31 Jul 2017 15:18:57 +0000 (15:18 +0000)
commit842110c5bc57ef6217353cd014cabfe220b47461
tree9229b06491f4a8ba984c0443f36ba847b14f6f3c
parent837b97fb9a2fa421d1569d09420cbb2bdcea1359
[docker] Fix unmatched quote problem in here-document on older versions of bash

Summary:
When outputing usage, emit here-document directly instead of
saving in a variable first -- avoids problem with bash 3.2.57 where an
unmatched ' in the here-document results in the following error:

./build_docker_image.sh: line 135: unexpected EOF while looking for matching `''

bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin16)

Differential Revision: https://reviews.llvm.org/D36064

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@309568 91177308-0d34-0410-b5e6-96231b3b80d8
utils/docker/build_docker_image.sh
utils/docker/scripts/build_install_llvm.sh