Naheel-Azawy / stpv

Simple Terminal PreViewer
GNU General Public License v3.0
96 stars 12 forks source link

fix lf file manager image previewes #17

Closed stoychod closed 2 years ago

stoychod commented 2 years ago

add an else statement to make sure the handler exit code is returned.

I am not that proficient in shell scripting but as far as I understand it, the problem is that when the code execution does not enter the if statement, the last executed line of code becomes the test statement, which does so successfully so the exit code of the previewer script becomes 0 regardless of what the handler function returns. Thus braking lf file manager image preview functionality.

Naheel-Azawy commented 2 years ago

Thanks!