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.
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 thetest
statement, which does so successfully so the exit code of the previewer script becomes0
regardless of what the handler function returns. Thus braking lf file manager image preview functionality.