Remove the /bin/env command before using sed and rely on $PATH

related to a discussion in #5468

Fixes #5471
This commit is contained in:
Pier-Hugues Pellerin 2016-06-09 11:06:40 -04:00
parent 53ed1defd0
commit c2a76b9aed

View file

@ -36,7 +36,7 @@ module ServiceTester
def replace_in_gemfile(pattern, replace, host)
gemfile = File.join(LOGSTASH_PATH, "Gemfile")
cmd = "/bin/env sed -i.sedbak 's/#{pattern}/#{replace}/' #{gemfile}"
cmd = "sed -i.sedbak 's/#{pattern}/#{replace}/' #{gemfile}"
run_command(cmd, host)
end