Fix some scripts

This commit is contained in:
Mitchell Hashimoto 2014-09-08 17:03:38 -07:00
parent 3006be4376
commit 7078c2f922
3 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@ fi
# Determine the arch/os combos we're building for
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
XC_OS=${XC_OS:-linux darwin windows freebsd openbsd}
XC_OS=${XC_OS:-linux darwin windows}
# Install dependencies
echo "==> Getting dependencies..."

View File

@ -17,7 +17,7 @@ if !ENV["PACKER_DISABLE_DOWNLOAD_FETCH"]
response = http.request(req)
response.body.split("\n").each do |line|
next if line !~ /\/mitchellh\/packer\/(#{Regexp.quote(ENV["PACKER_VERSION"])}.+?)'/
next if line !~ /\/mitchellh\/packer\/packer_(#{Regexp.quote(ENV["PACKER_VERSION"])}.+?)'/
filename = $1.to_s
os = filename.split("_")[1]
next if os == "SHA256SUMS"
@ -84,7 +84,7 @@ helpers do
end
def download_url(file)
"https://dl.bintray.com/mitchellh/packer/#{file}"
"https://dl.bintray.com/mitchellh/packer/packer_#{file}"
end
def latest_version

View File

@ -17,7 +17,7 @@ page_title: "Downloads"
Below are all available downloads for the latest version of Packer
(<%= latest_version %>). Please download the proper package for your
operating system and architecture. You can find SHA256 checksums
for packages <a href="https://dl.bintray.com/mitchellh/packer/<%= latest_version %>_SHA256SUMS?direct">here</a>.
for packages <a href="https://dl.bintray.com/mitchellh/packer/packer_<%= latest_version %>_SHA256SUMS?direct">here</a>.
</p>
</div>
</div>