Skip to content

Commit

Permalink
scripts: dist handles UI
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed May 1, 2014
1 parent d8b3fed commit b57a3ea
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,15 @@ for FILENAME in $(find ./dist -mindepth 1 -maxdepth 1 -type f); do
CONSULNAME="consul${EXTENSION}"

pushd ./dist
cp ${FILENAME} ${CONSULNAME}
zip ./pkg/${VERSION}_${PLATFORM}.zip ${CONSULNAME}
rm ${CONSULNAME}

if [ "${FILENAME}" = "ui.zip" ]; then
cp ${FILENAME} ./pkg/${VERSION}_web_ui.zip
else
cp ${FILENAME} ${CONSULNAME}
zip ./pkg/${VERSION}_${PLATFORM}.zip ${CONSULNAME}
rm ${CONSULNAME}
fi

popd
done

Expand Down

0 comments on commit b57a3ea

Please sign in to comment.