From eeed04fdad87c62efb87079406741a56cf316945 Mon Sep 17 00:00:00 2001 From: Shaun Jackman Date: Thu, 21 Feb 2019 08:39:11 -0800 Subject: [PATCH] diagnostic: Fix check_xdg_data_dirs for Linux Fix Error: undefined method prepend_variable_in_profile' for Utils::Shell:Module Did you mean? prepend_path_in_profile --- Library/Homebrew/extend/os/linux/diagnostic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/extend/os/linux/diagnostic.rb b/Library/Homebrew/extend/os/linux/diagnostic.rb index 061fe64bfb..68d90a9df4 100644 --- a/Library/Homebrew/extend/os/linux/diagnostic.rb +++ b/Library/Homebrew/extend/os/linux/diagnostic.rb @@ -54,7 +54,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: - #{Utils::Shell.prepend_variable_in_profile("XDG_DATA_DIRS", HOMEBREW_PREFIX/"share")} + echo 'export XDG_DATA_DIRS="#{HOMEBREW_PREFIX}/share:$XDG_DATA_DIRS"' >> #{shell_profile} EOS end