chore: fix the bintray-debian publishing script (#930)

This change prevents the script erroring with `BINTRAY_USER: unbound variable` when `$BINTRAY_USER` isn't defined, and instead displays the "Please define the following ..." message as expected.
This commit is contained in:
Andrew Scheller 2016-12-05 00:24:50 +00:00 committed by Juan Cruz Viotti
parent 9d92d58711
commit ce206fc0b7

View File

@ -34,13 +34,15 @@ if [ "$#" -ne 1 ]; then
exit 1
fi
if [ -z $BINTRAY_USER ] || [ -z $BINTRAY_API_KEY ]; then
set +u
if [ -z "$BINTRAY_USER" ] || [ -z "$BINTRAY_API_KEY" ]; then
echo "Please define the following environment variables:" 1>&2
echo "" 1>&2
echo " BINTRAY_USER" 1>&2
echo " BINTRAY_API_KEY" 1>&2
exit 1
fi
set -u
ARGV_FILE=$1
PACKAGE_COMPONENT=etcher