Skip to content

Commit

Permalink
Fixed paths in release.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnerWah committed Nov 8, 2022
1 parent 0d868d3 commit 6e0d52e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
end

formula = ""
File.open("formula/bun.rb", "r") do |file|
File.open("Formula/bun.rb", "r") do |file|
file.each_line do |line|
query = line.strip

Expand All @@ -68,11 +68,11 @@

versioned_class = "class BunAT#{version.gsub(/\./, "")}"
versioned_formula = formula.gsub(/class Bun/, versioned_class)
File.write("formula/bun@#{version}.rb", versioned_formula)
puts "Saved formula/bun@#{version}.rb"
File.write("Formula/bun@#{version}.rb", versioned_formula)
puts "Saved Formula/bun@#{version}.rb"

File.write("formula/bun.rb", formula)
puts "Saved formula/bun.rb"
File.write("Formula/bun.rb", formula)
puts "Saved Formula/bun.rb"

readme = File.read("README.md")
new_readme = readme.gsub(/bun@[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}/, "bun@#{version}")
Expand Down

0 comments on commit 6e0d52e

Please sign in to comment.