Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DIRECTORY_COPY_COMMAND_FOR_UNIX_DEFAULT now uses tar -C option to spe…
…cify target dir instead of doing an unchecked cd.
- Loading branch information
4b62819
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bastiaanb, thank you for your pull request.
However, we cannot accept it as it would break the functionality on AIX. In fact, when we introduced the remote copy shortcircuit functionality, we used the
-C
flag totar
but that didn't work on AIX, see xebialabs#116. We fixed that in commit a756fc93But that still doesn't solve the issue you're facing. I can think of two solutions:
;
in the original command to&&
:cd {1} && tar -cf - -C {0} . | tar xpf -
The first is prettier, but I wonder if
&&
works for all shells. Hmm...Regards, Vincent.
4b62819
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.