Utils::Shell.shell_profile in formula_cellar_checks
This commit is contained in:
parent
9a29a306cf
commit
f1ce358551
@ -1,3 +1,5 @@
|
||||
require "utils/shell"
|
||||
|
||||
module FormulaCellarChecks
|
||||
def check_PATH(bin)
|
||||
# warn the user if stuff was installed outside of their PATH
|
||||
@ -12,7 +14,7 @@ module FormulaCellarChecks
|
||||
|
||||
<<-EOS.undent
|
||||
#{prefix_bin} is not in your PATH
|
||||
You can amend this by altering your #{shell_profile} file
|
||||
You can amend this by altering your #{Utils::Shell.shell_profile} file
|
||||
EOS
|
||||
end
|
||||
|
||||
|
||||
@ -238,7 +238,7 @@ class IntegrationCommandTests < Homebrew::TestCase
|
||||
end
|
||||
|
||||
def test_env_csh
|
||||
assert_match %r{setenv CMAKE_PREFIX_PATH},
|
||||
assert_match %r{setenv CMAKE_PREFIX_PATH #{Regexp.quote(HOMEBREW_PREFIX.to_s)}},
|
||||
cmd("--env", "--shell=tcsh")
|
||||
end
|
||||
|
||||
|
||||
@ -30,7 +30,7 @@ class ShellSmokeTest < Homebrew::TestCase
|
||||
def test_csh_quote()
|
||||
assert_equal "''", Utils::Shell.csh_quote("")
|
||||
assert_equal "\\\\", Utils::Shell.csh_quote("\\")
|
||||
# note this test is different
|
||||
# note this test is different than for sh
|
||||
assert_equal "'\\\n'", Utils::Shell.csh_quote("\n")
|
||||
assert_equal "\\$", Utils::Shell.csh_quote("$")
|
||||
assert_equal "word", Utils::Shell.csh_quote("word")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user