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
|
module FormulaCellarChecks
|
||||||
def check_PATH(bin)
|
def check_PATH(bin)
|
||||||
# warn the user if stuff was installed outside of their PATH
|
# warn the user if stuff was installed outside of their PATH
|
||||||
@ -12,7 +14,7 @@ module FormulaCellarChecks
|
|||||||
|
|
||||||
<<-EOS.undent
|
<<-EOS.undent
|
||||||
#{prefix_bin} is not in your PATH
|
#{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
|
EOS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -238,7 +238,7 @@ class IntegrationCommandTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_env_csh
|
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")
|
cmd("--env", "--shell=tcsh")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class ShellSmokeTest < Homebrew::TestCase
|
|||||||
def test_csh_quote()
|
def test_csh_quote()
|
||||||
assert_equal "''", Utils::Shell.csh_quote("")
|
assert_equal "''", Utils::Shell.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 "'\\\n'", Utils::Shell.csh_quote("\n")
|
||||||
assert_equal "\\$", Utils::Shell.csh_quote("$")
|
assert_equal "\\$", Utils::Shell.csh_quote("$")
|
||||||
assert_equal "word", Utils::Shell.csh_quote("word")
|
assert_equal "word", Utils::Shell.csh_quote("word")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user