aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 8bd1c4b9e..954f6eb78 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -192,10 +192,7 @@ module Homebrew
puts output
if ARGV.include? '--rb'
- bottle_base = filename.to_s.gsub(bottle_suffix(bottle_revision), '')
- File.open "#{bottle_base}.bottle.rb", 'w' do |file|
- file.write output
- end
+ File.open("#{filename.prefix}.bottle.rb", "w") { |file| file.write(output) }
end
end