summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2017-10-28 00:06:19 -0700
committerMinh Nguyễn <mxn@1ec5.org>2017-10-28 00:06:19 -0700
commitc7bf12e9be3df35f7992070b6c785e10664a7fe5 (patch)
treed51875d6ce617abd14d1800fa70ac65ca4233eb9
parent03fb133d0991a8621bcf9f8798b4dc2c4b01be69 (diff)
downloadqtlocation-mapboxgl-c7bf12e9be3df35f7992070b6c785e10664a7fe5.tar.gz
[macos] Explicitly named function argument
-rwxr-xr-xplatform/macos/scripts/deploy-packages.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/macos/scripts/deploy-packages.sh b/platform/macos/scripts/deploy-packages.sh
index c4207ba421..90c3c29308 100755
--- a/platform/macos/scripts/deploy-packages.sh
+++ b/platform/macos/scripts/deploy-packages.sh
@@ -46,7 +46,7 @@ buildPackageStyle() {
--name ${file_name} \
--file "${BINARY_DIRECTORY}/${file_name}" > /dev/null
fi
- if [[ $2 == true ]]; then
+ if [[ ${DEPLOY_APP} == true ]]; then
cd build/macos/app
rm -f 'Mapbox GL.app.zip'
zip -yr '../deploy/Mapbox GL.app.zip' 'Mapbox GL.app'
@@ -127,6 +127,6 @@ if [[ "${GITHUB_RELEASE}" == true ]]; then
fi
buildPackageStyle "xpackage" "symbols"
-buildPackageStyle "xpackage SYMBOLS=NO" true
+DEPLOY_APP=true buildPackageStyle "xpackage SYMBOLS=NO"
step "Finished deploying ${PUBLISH_VERSION} in $(($SECONDS / 60)) minutes and $(($SECONDS % 60)) seconds"