mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-18 16:56:32 +00:00
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:
parent
9d92d58711
commit
ce206fc0b7
@ -34,13 +34,15 @@ if [ "$#" -ne 1 ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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 "Please define the following environment variables:" 1>&2
|
||||||
echo "" 1>&2
|
echo "" 1>&2
|
||||||
echo " BINTRAY_USER" 1>&2
|
echo " BINTRAY_USER" 1>&2
|
||||||
echo " BINTRAY_API_KEY" 1>&2
|
echo " BINTRAY_API_KEY" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
set -u
|
||||||
|
|
||||||
ARGV_FILE=$1
|
ARGV_FILE=$1
|
||||||
PACKAGE_COMPONENT=etcher
|
PACKAGE_COMPONENT=etcher
|
||||||
|
Loading…
x
Reference in New Issue
Block a user