Checkmk not affected by Log4shell

Problem is in two places not only one, first is " | awk ‘{ print $2}’ " spits out two rows , and the second problem is that " $SHORT\n$LONG" spits out two rows as well so i only use long one. This work in the way that : will give value “10” if there is 1 vulnerable files and “01” if there is 1 potentially vulnerable files and obviously if “11” then 1 vulnerable files and 1 potentially vulnerable files, not perfect but it does the trick:
Solution in first problem:
COUNT=echo "$RESULT" | grep "vulnerable files" | awk '{printf "%s", $2}'
Solution on second problem:
echo “P CVE-2021-44228_log4j count=”$COUNT";1;1 $LONG"