Commit 32645a9a authored by Marc Boquet's avatar Marc Boquet

Unset the `CDPATH` env variable before shelling-out. #1694

parent 18d66116
......@@ -120,6 +120,7 @@ module Pod
return unless root_spec.prepare_command
UI.section(" > Running prepare command", '', 1) do
Dir.chdir(root) do
ENV.delete('CDPATH')
prepare_command = root_spec.prepare_command.strip_heredoc.chomp
full_command = "\nset -e\n" + prepare_command
bash!(full_command)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment