chef / chef-apply

The ad-hoc execution tool for the Chef ecosystem.
https://www.chef.sh/
Apache License 2.0
14 stars 14 forks source link

Correct error 'bash: - invalid option' #50

Closed marcparadise closed 5 years ago

marcparadise commented 5 years ago

Description

This was added to work around permissions issues, where a newly created directory would be created with sudo, then upload over SCP would fail because it used the connecting user who had no access to that directory.

Setting ownership is now encapsulated in TargetHost#mkdir and TargetHost#mktemp, so that callers can mkdir then use it for upload without worrying about platform-specific permissions behaviors.

Signed-off-by: Marc A. Paradise marc.paradise@gmail.com

Issues

This addresses https://github.com/chef/chef-apply/issues/40

Check List