scripts: chmod for dist

This commit is contained in:
Mitchell Hashimoto 2014-05-20 12:48:17 -07:00
parent dd87449b66
commit 6453edf8c5
1 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,10 @@ for FILENAME in $(find ./dist -mindepth 1 -maxdepth 1 -type f); do
if [ "${FILENAME}" = "ui.zip" ]; then if [ "${FILENAME}" = "ui.zip" ]; then
cp ${FILENAME} ./pkg/${VERSION}_web_ui.zip cp ${FILENAME} ./pkg/${VERSION}_web_ui.zip
else else
if [ "${EXTENSION}" = "" ]; then
chmod +x ${FILENAME}
fi
cp ${FILENAME} ${CONSULNAME} cp ${FILENAME} ${CONSULNAME}
zip ./pkg/${VERSION}_${PLATFORM}.zip ${CONSULNAME} zip ./pkg/${VERSION}_${PLATFORM}.zip ${CONSULNAME}
rm ${CONSULNAME} rm ${CONSULNAME}