Hello Jan!
On Fri, 1 Nov 2024 14:10:43 +0100 you wrote:
> https://grsc.cz/blog/loffice-linux-issues/, but it's mostly not relevant
> for this bug).
While I can't help you with grep/operating system issue I suggest replacing
if echo "$checks" | grep -q "cc" ; then
by
if [ ${#checks} -gt 1 ] ; then
It simply tests if the string inside the variable checks is longer than 1, uses
less system resources and all shell features you need have already been part of
POSIX 1003.1 Issue 6 from 2004.
Best regards,
Martin