Don't use deprecated Kernel#shell_profile.

This commit is contained in:
Markus Reiter 2023-04-14 21:14:44 +02:00
parent 2816c1274f
commit 38695f96c7
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -51,9 +51,9 @@ module Homebrew
<<~EOS <<~EOS
The directory #{HOMEBREW_TEMP} does not permit executing The directory #{HOMEBREW_TEMP} does not permit executing
programs. It is likely mounted as "noexec". Please set HOMEBREW_TEMP programs. It is likely mounted as "noexec". Please set HOMEBREW_TEMP
in your #{shell_profile} to a different directory, for example: in your #{Utils::Shell.profile} to a different directory, for example:
export HOMEBREW_TEMP=~/tmp export HOMEBREW_TEMP=~/tmp
echo 'export HOMEBREW_TEMP=~/tmp' >> #{shell_profile} echo 'export HOMEBREW_TEMP=~/tmp' >> #{Utils::Shell.profile}
EOS EOS
ensure ensure
f&.unlink f&.unlink
@ -68,7 +68,7 @@ module Homebrew
this variable set to include other locations. this variable set to include other locations.
Some programs like `vapigen` may not work correctly. Some programs like `vapigen` may not work correctly.
Consider adding Homebrew's share directory to XDG_DATA_DIRS like so: Consider adding Homebrew's share directory to XDG_DATA_DIRS like so:
echo 'export XDG_DATA_DIRS="#{HOMEBREW_PREFIX}/share:$XDG_DATA_DIRS"' >> #{shell_profile} echo 'export XDG_DATA_DIRS="#{HOMEBREW_PREFIX}/share:$XDG_DATA_DIRS"' >> #{Utils::Shell.profile}
EOS EOS
end end
@ -78,8 +78,8 @@ module Homebrew
<<~EOS <<~EOS
umask is currently set to 000. Directories created by Homebrew cannot umask is currently set to 000. Directories created by Homebrew cannot
be world-writable. This issue can be resolved by adding "umask 002" to be world-writable. This issue can be resolved by adding "umask 002" to
your #{shell_profile}: your #{Utils::Shell.profile}:
echo 'umask 002' >> #{shell_profile} echo 'umask 002' >> #{Utils::Shell.profile}
EOS EOS
end end