Use CONSUL_PKG_NAME in package_release

This commit is contained in:
Matt Keeler 2018-06-18 10:26:04 -04:00
parent c94c212e97
commit 74d2806cc1
1 changed files with 2 additions and 2 deletions

View File

@ -98,10 +98,10 @@ function package_release {
for platform in $(find "${sdir}/pkg/bin" -mindepth 1 -maxdepth 1 -type d)
do
local os_arch=$(basename $platform)
local dest="${sdir}/pkg/dist/consul_${vers}_${os_arch}.zip"
local dest="${sdir}/pkg/dist/${CONSUL_PKG_NAME}_${vers}_${os_arch}.zip"
status "Compressing ${os_arch} directory into ${dest}"
pushd "${platform}" > /dev/null
zip "${sdir}/pkg/dist/consul_${vers}_${os_arch}.zip" ./*
zip "${sdir}/pkg/dist/${CONSUL_PKG_NAME}_${vers}_${os_arch}.zip" ./*
ret=$?
popd > /dev/null