New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change regular expression for adding env-PATH with exclamation. #223

Merged
merged 1 commit into from Aug 5, 2013
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Diff settings

Always

Just for now

Change regular expression for adding env-PATH with exclamation.

  • Loading branch information...
a3no committed Aug 4, 2013
commit b8bd6dd0e76b4b43a6d93fbc160cdb603c9b8ef6
@@ -37,8 +37,8 @@ def build_command(cmd)
path = Serverspec.configuration.path || RSpec.configuration.path
if path
cmd = "env PATH=#{path}:$PATH #{cmd}"
cmd.gsub!(/(\&\&\s*\(?)/, "\\1env PATH=#{path}:$PATH ")
cmd.gsub!(/(\|\|\s*\(?)/, "\\1env PATH=#{path}:$PATH ")
cmd.gsub!(/(\&\&\s*!?\(?\s*)/, "\\1env PATH=#{path}:$PATH ")
cmd.gsub!(/(\|\|\s*!?\(?\s*)/, "\\1env PATH=#{path}:$PATH ")
end
cmd
end
ProTip! Use n and p to navigate between commits in a pull request.