Skip to content

Commit

Permalink
FileUtils.cp_r has inconsistent results on Windows and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Dec 28, 2015
1 parent d91551f commit bc8cf77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ WORKDIR /usr/src/app
EXPOSE 4000

CMD \
rake bootstrap && \
rake bootstrap --trace && \
rake preview
6 changes: 5 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
Rake.add_rakelib 'sdkdocs-template/rakelib'

begin
FileUtils.mkdir_p %w( _includes/code_samples )
FileUtils.cp_r 'code_samples', '_includes', :verbose => true
FileUtils.cp_r 'code_samples', '_includes', :verbose => true, :remove_destination => true
rescue
`yes | cp -rf code_samples _includes`
end

CONFIG = {
:source_dir => __dir__,
Expand Down

0 comments on commit bc8cf77

Please sign in to comment.