fixed typo and remove env dump

This commit is contained in:
Hanjo Meinhardt 2018-01-27 14:32:46 +01:00
parent 12ac051e8f
commit 5367930bdd

View File

@ -5,8 +5,8 @@
[ -z $PLUGIN_PASSWORD ] && [ -n $SENDXMPP_PASSWORD ] && PLUGIN_PASSWORD="${SENDXMPP_PASSWORD}"
# check if all required fields are set
[ -z "$PLUGIN_USERNAME" ] && echo "missing password or sendxmpp_password secret" && exit 1
[ -z "$PLUGIN_PASSWORD" ] && echo "missing username or sendxmpp_username secret" && exit 1
[ -z "$PLUGIN_USERNAME" ] && echo "missing username or sendxmpp_username secret" && exit 1
[ -z "$PLUGIN_PASSWORD" ] && echo "missing password or sendxmpp_password secret" && exit 1
[ -z "$PLUGIN_JSERVER" ] && echo "missing jserver" && exit 1
[ -z "$PLUGIN_RECIPIENT" ] && echo "missing recipient" && exit 1
@ -21,6 +21,4 @@ CMD="sendxmpp \
--no-tls-verify
${PLUGIN_RECIPIENT}"
env | grep "DRONE_"
echo $MSG | $CMD