Merge pull request #19015 from Homebrew/fix-disabled-envvar-message

env_config: Improve the deprecated envvar message
This commit is contained in:
Mike McQuaid 2024-12-30 12:39:39 +00:00 committed by GitHub
commit 781fb4726f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -527,9 +527,8 @@ module Homebrew
falsy_values = %w[false no off nil 0]
if falsy_values.include?(env_value&.downcase)
odeprecated "#{env}=#{env_value}", <<~EOS
If you wish to enable #{env}, #{env}=1
If you wish to disable #{env}, #{env}=
odeprecated "#{env}=#{env_value}", <<~EOS.chomp
#{env}=1 to enable and #{env}= (an empty value) to disable
EOS
end