Skip to content

Commit

Permalink
Fix Rake :preview_docs tarball
Browse files Browse the repository at this point in the history
The previous version created a circular reference, I believe, which caused:

```
tar: .: file changed as we read it
```
  • Loading branch information
zzak committed Apr 26, 2024
1 parent 5e0c738 commit 5e61328
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ task :preview_docs do
FileUtils.mv("doc/rdoc", "preview/api")
FileUtils.mv("guides/output", "preview/guides")

Dir.chdir("preview") do
system("tar -czf preview.tar.gz .")
end
system("tar -czf preview.tar.gz -C preview .")
end

desc "Bump all versions to match RAILS_VERSION"
Expand Down

0 comments on commit 5e61328

Please sign in to comment.