Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix fetching artifacts when sudo -i changes directory
When spread connects to a machine as a non-root user, then it injects calls to sudo -i to run commands as root. This effectively makes the artifact sending logic is basically: ```sh cd directory sudo -i tar ... ``` The problem is that sudo -i changes the current working directory back to /root. Pass -C or --directory= to tar, so that all the files are referenced relative to the task directory. Signed-off-by: Zygmunt Krynicki <[email protected]>
- Loading branch information