codingjoe / relint

Write your own linting rules using regular expressions.
MIT License
51 stars 10 forks source link

Output not showing up when running inside of bash script #77

Closed El-Virus closed 3 months ago

El-Virus commented 3 months ago

Calling relint inside of a shellscript will just only display the progress bar and return 0.

codingjoe commented 3 months ago

Hi @El-Virus,

This seems to be related to rich. As far as I understand, they always flush. Have you checked, if they maybe write parts of the output to stderr, not stdout?

If you have a sample script or a little more info, so I can reproduce the issue, I'd be happy to dig a little deeper.

Cheers, Joe

El-Virus commented 3 months ago

I thought that it was relint itself that handled glob pattern extension, not bash. That was my issue, it was as easy as enabling globstar inside the script.