a bunch of missing then
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a596dc25cc
commit
c1f43d98b3
10
plugin.sh
10
plugin.sh
@ -11,11 +11,11 @@ FORMATTED_CHANGES=$(echo "# $CURRENTTAG \n $ALLCHANGES" | pandoc -f markdown -t
|
||||
echo $PLUGIN_GITEA_DOMAIN;
|
||||
|
||||
if [[ "${PLUGIN_GITEA_DOMAIN:-}" == "true" ]]; then
|
||||
if [[ -n "${PLUGIN_GITEA_APIKEY:-}"]]
|
||||
if [[ -n "${PLUGIN_GITEA_APIKEY:-}"]]; then
|
||||
echo "No api key provided";
|
||||
exit 1;
|
||||
fi
|
||||
if [[ -n "${PLUGIN_REPO:-}"]]
|
||||
if [[ -n "${PLUGIN_REPO:-}"]]; then
|
||||
echo "No repo provided";
|
||||
exit 2;
|
||||
fi
|
||||
@ -32,15 +32,15 @@ if [[ "${PLUGIN_GITEA_DOMAIN:-}" == "true" ]]; then
|
||||
}"
|
||||
fi
|
||||
if [[ "${PLUGIN_MATRIX_SERVER:-}" == "true" ]]; then
|
||||
if [[ -n "${PLUGIN_MATRIX_USER:-}"]]
|
||||
if [[ -n "${PLUGIN_MATRIX_USER:-}"]]; then
|
||||
echo "No matrix username provided";
|
||||
exit 3;
|
||||
fi
|
||||
if [[ -n "${PLUGIN_MATRIX_PASSWORD:-}"]]
|
||||
if [[ -n "${PLUGIN_MATRIX_PASSWORD:-}"]]; then
|
||||
echo "No matrix password provided";
|
||||
exit 4;
|
||||
fi
|
||||
if [[ -n "${PLUGIN_MATRIX_ROOM:-}"]]
|
||||
if [[ -n "${PLUGIN_MATRIX_ROOM:-}"]]; then
|
||||
echo "No matrix room id provided";
|
||||
exit 4;
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user