diff --git a/scripts/hook.sh b/scripts/hook.sh index 84e1dc4e1..0be0a02d5 100755 --- a/scripts/hook.sh +++ b/scripts/hook.sh @@ -12,8 +12,8 @@ BUILD_DIR=$HOME/kamiblue/build/libs/ JAR_DIR="$(ls "$BUILD_DIR" | grep "release")" CHANGELOG_FULL="$(git log --format=%s $COMMIT_TRIM...$COMMIT_LAST | sed ':a;N;$!ba;s/\n/\\n- /g')" -# remove ' and " from changelog -CHANGELOG_FULL="$(echo CHANGELOG_FULL | sed "s/['\"]//g")" +# remove ' and " from changelog, as those chars do not work with discord webhooks +CHANGELOG_FULL="$(echo $CHANGELOG_FULL | sed "s/['\"]//g")" # delete the release in case it exists git tag -d $CUR_VER-$COMMIT_TRIM