reformat nested heredocs in BuildFlagsError and BuildToolsError to match String#undent behavior
Closes Homebrew/homebrew#43303. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
b0d5e17906
commit
c459349b89
@ -273,25 +273,25 @@ class BuildToolsError < RuntimeError
|
||||
if MacOS.version >= "10.10"
|
||||
xcode_text = <<-EOS.undent
|
||||
To continue, you must install Xcode from the App Store,
|
||||
or the CLT by running:
|
||||
xcode-select --install
|
||||
or the CLT by running:
|
||||
xcode-select --install
|
||||
EOS
|
||||
elsif MacOS.version == "10.9"
|
||||
xcode_text = <<-EOS.undent
|
||||
To continue, you must install Xcode from:
|
||||
https://developer.apple.com/downloads/
|
||||
or the CLT by running:
|
||||
xcode-select --install
|
||||
https://developer.apple.com/downloads/
|
||||
or the CLT by running:
|
||||
xcode-select --install
|
||||
EOS
|
||||
elsif MacOS.version >= "10.7"
|
||||
xcode_text = <<-EOS.undent
|
||||
To continue, you must install Xcode or the CLT from:
|
||||
https://developer.apple.com/downloads/
|
||||
https://developer.apple.com/downloads/
|
||||
EOS
|
||||
else
|
||||
xcode_text = <<-EOS.undent
|
||||
To continue, you must install Xcode from:
|
||||
https://developer.apple.com/xcode/downloads/
|
||||
https://developer.apple.com/xcode/downloads/
|
||||
EOS
|
||||
end
|
||||
|
||||
@ -320,24 +320,24 @@ class BuildFlagsError < RuntimeError
|
||||
if MacOS.version >= "10.10"
|
||||
xcode_text = <<-EOS.undent
|
||||
or install Xcode from the App Store, or the CLT by running:
|
||||
xcode-select --install
|
||||
xcode-select --install
|
||||
EOS
|
||||
elsif MacOS.version == "10.9"
|
||||
xcode_text = <<-EOS.undent
|
||||
or install Xcode from:
|
||||
https://developer.apple.com/downloads/
|
||||
or the CLT by running:
|
||||
xcode-select --install
|
||||
https://developer.apple.com/downloads/
|
||||
or the CLT by running:
|
||||
xcode-select --install
|
||||
EOS
|
||||
elsif MacOS.version >= "10.7"
|
||||
xcode_text = <<-EOS.undent
|
||||
or install Xcode or the CLT from:
|
||||
https://developer.apple.com/downloads/
|
||||
https://developer.apple.com/downloads/
|
||||
EOS
|
||||
else
|
||||
xcode_text = <<-EOS.undent
|
||||
or install Xcode from:
|
||||
https://developer.apple.com/xcode/downloads/
|
||||
https://developer.apple.com/xcode/downloads/
|
||||
EOS
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user