diff --git a/omnibus/config/software/datadog-agent.rb b/omnibus/config/software/datadog-agent.rb index 4f6e16dbe30fb..adfd26bd5671c 100644 --- a/omnibus/config/software/datadog-agent.rb +++ b/omnibus/config/software/datadog-agent.rb @@ -152,9 +152,9 @@ if sysprobe_support if not bundled_agents.include? "system-probe" if windows_target? - command "invoke -e system-probe.build" + command "invoke -e system-probe.build", env: env elsif linux_target? - command "invoke -e system-probe.build-sysprobe-binary --install-path=#{install_dir} --no-bundle" + command "invoke -e system-probe.build-sysprobe-binary --install-path=#{install_dir} --no-bundle", env: env end end