Closed kenjiszk closed 8 years ago
I'm not familiar with the -T
option. man cp
says treat DEST as a normal file
. Is this really what we want?
Yes, if cp treats DEST as a directory, copy result becomes target/assets/assets/sample.txt
See also https://www.gnu.org/software/coreutils/manual/html_node/Target-directory.html
@kenjiszk, @elik-ru disagrees with this solution (see https://github.com/capistrano-plugins/capistrano-faster-assets/pull/16). Could you please provide arguments why this commit should remain? If not, I will revert this PR.
@rhomeister
Please revert this PR. I think big issue is this( @elik-ru thank you for comment ).
-T key exists only in Linux, not in FreeBSD, MacOS and may be some other systems
I will think about another solution better than 'add T'.
OK, thanks for your input. I've reverted the PR.
I back this, is the only way this gem can work for me.
Add T option to cp
In the target directory existing case, cp command doesn't work as expected.
then, add T option, it works.
It also works when target directory is not exists.