Fix check_for_unsupported_macos() on outdated releases
Recent commit 36dbad3922
to default to frozen string literals (via `frozen_string_literal`) broke `check_for_unsupported_macos()` on outdated releases--due to attempted modification of a frozen string literal.
This breaks `install` and `doctor`.
It's like the change wasn't tested on an unsupported outdated release or something... :D
Adding a `+` prefix is apparently one way around this issue according to https://stackoverflow.com/questions/37799296/what-does-the-comment-frozen-string-literal-true-do#37799399. The change worked for me.
This commit is contained in:
parent
e5f722ca02
commit
2064b30fce
@ -51,7 +51,7 @@ module Homebrew
|
|||||||
if OS::Mac.prerelease?
|
if OS::Mac.prerelease?
|
||||||
what = "pre-release version"
|
what = "pre-release version"
|
||||||
elsif OS::Mac.outdated_release?
|
elsif OS::Mac.outdated_release?
|
||||||
who << " (and Apple)"
|
+who << " (and Apple)"
|
||||||
what = "old version"
|
what = "old version"
|
||||||
else
|
else
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user