Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit d88b63c

Browse files
committed
Merge pull request #74 from boxen/fix-hook-download
Fix hook downloads
2 parents 30fb50d + cb528ac commit d88b63c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

files/boxen-bottle-hooks.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
require "utils"
44
require "net/http"
55
require "uri"
6+
require "base64"
67

78
# This monkeypatching sidesteps Homebrew's normal bottle support and uses our,
89
# uh, homebrewed S3 binaries. This support is patched in instead of handled in
@@ -15,7 +16,7 @@ def self.file(formula)
1516
def self.url(formula)
1617
os = MacOS.version
1718
file = self.file(formula)
18-
path = "#{Base64.strict_encode64(HOMEBREW_CELLAR)}/#{os}/#{file}"
19+
path = "/#{Base64.strict_encode64(HOMEBREW_CELLAR)}/#{os}/#{file}"
1920

2021
if ENV['BOXEN_HOMEBREW_BOTTLE_URL']
2122
ENV['BOXEN_HOMEBREW_BOTTLE_URL'] + path

0 commit comments

Comments
 (0)