fixed bach synatax error
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nicolai Ort 2023-05-10 19:42:04 +02:00
parent 79f2a6cb62
commit a38c402037
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -8,14 +8,13 @@ PREVIOUSTAG=$(git tag --sort=-taggerdate | head -n 2 | tail -n 1)
ALLCHANGES=$(npx -y @philippdormann/changelogen@latest --from $PREVIOUSTAG --to $CURRENTTAG --no-output | sed 's/"/\\"/g' | tail -n +6) ALLCHANGES=$(npx -y @philippdormann/changelogen@latest --from $PREVIOUSTAG --to $CURRENTTAG --no-output | sed 's/"/\\"/g' | tail -n +6)
FORMATTED_CHANGES=$(echo "# $CURRENTTAG \n $ALLCHANGES" | pandoc -f markdown -t html | sed 's/"/'"'"'/g' | xargs echo -n) FORMATTED_CHANGES=$(echo "# $CURRENTTAG \n $ALLCHANGES" | pandoc -f markdown -t html | sed 's/"/'"'"'/g' | xargs echo -n)
echo $PLUGIN_GITEA_DOMAIN;
if [[ "${PLUGIN_GITEA_DOMAIN:-}" == "true" ]]; then if [[ -n "$PLUGIN_GITEA_DOMAIN" ]]; then
if [[ -n "${PLUGIN_GITEA_APIKEY:-}"]]; then if [[ -z "$PLUGIN_GITEA_APIKEY"]]; then
echo "No api key provided"; echo "No api key provided";
exit 1; exit 1;
fi fi
if [[ -n "${PLUGIN_REPO:-}"]]; then if [[ -z "$PLUGIN_REPO"]]; then
PLUGIN_REPO=$CI_REPO_NAME PLUGIN_REPO=$CI_REPO_NAME
fi fi
@ -30,16 +29,16 @@ if [[ "${PLUGIN_GITEA_DOMAIN:-}" == "true" ]]; then
\"tag_name\": \"$CURRENTTAG\" \"tag_name\": \"$CURRENTTAG\"
}" }"
fi fi
if [[ "${PLUGIN_MATRIX_SERVER:-}" == "true" ]]; then if [[ -n "$PLUGIN_MATRIX_SERVER" ]]; then
if [[ -n "${PLUGIN_MATRIX_USER:-}"]]; then if [[ -z "$PLUGIN_MATRIX_USER" ]]; then
echo "No matrix username provided"; echo "No matrix username provided";
exit 3; exit 3;
fi fi
if [[ -n "${PLUGIN_MATRIX_PASSWORD:-}"]]; then if [[ -z "$PLUGIN_MATRIX_PASSWORD" ]]; then
echo "No matrix password provided"; echo "No matrix password provided";
exit 4; exit 4;
fi fi
if [[ -n "${PLUGIN_MATRIX_ROOM:-}"]]; then if [[ -z "$PLUGIN_MATRIX_ROOM" ]]; then
echo "No matrix room id provided"; echo "No matrix room id provided";
exit 4; exit 4;
fi fi