Skip to content

Commit 9f24dde

Browse files
ClearlyClairekadoshita
authored andcommitted
Fix "bundle exec rails mastodon:setup" crashing in some circumstances (mastodon#16976)
Fix regression from mastodon#16896
1 parent a7a0eec commit 9f24dde

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/tasks/mastodon.rake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,11 @@ namespace :mastodon do
350350
end
351351
end.join("\n")
352352

353-
generated_header = "# Generated with mastodon:setup on #{Time.now.utc}\n\n"
353+
generated_header = "# Generated with mastodon:setup on #{Time.now.utc}\n\n".dup
354354

355355
if incompatible_syntax
356-
generated_header << "Some variables in this file will be interpreted differently whether you are\n"
357-
generated_header << "using docker-compose or not.\n\n"
356+
generated_header << "# Some variables in this file will be interpreted differently whether you are\n"
357+
generated_header << "# using docker-compose or not.\n\n"
358358
end
359359

360360
File.write(Rails.root.join('.env.production'), "#{generated_header}#{env_contents}\n")

0 commit comments

Comments
 (0)