From 38695f96c77d002a95ca317e7c8198ec1386a300 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Fri, 14 Apr 2023 21:14:44 +0200 Subject: [PATCH] Don't use deprecated `Kernel#shell_profile`. --- Library/Homebrew/extend/os/linux/diagnostic.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Library/Homebrew/extend/os/linux/diagnostic.rb b/Library/Homebrew/extend/os/linux/diagnostic.rb index f583b965ae..fea32b3893 100644 --- a/Library/Homebrew/extend/os/linux/diagnostic.rb +++ b/Library/Homebrew/extend/os/linux/diagnostic.rb @@ -51,9 +51,9 @@ module Homebrew <<~EOS The directory #{HOMEBREW_TEMP} does not permit executing 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 - echo 'export HOMEBREW_TEMP=~/tmp' >> #{shell_profile} + echo 'export HOMEBREW_TEMP=~/tmp' >> #{Utils::Shell.profile} EOS ensure f&.unlink @@ -68,7 +68,7 @@ module Homebrew this variable set to include other locations. Some programs like `vapigen` may not work correctly. 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 end @@ -78,8 +78,8 @@ module Homebrew <<~EOS umask is currently set to 000. Directories created by Homebrew cannot be world-writable. This issue can be resolved by adding "umask 002" to - your #{shell_profile}: - echo 'umask 002' >> #{shell_profile} + your #{Utils::Shell.profile}: + echo 'umask 002' >> #{Utils::Shell.profile} EOS end