@Fox Yes, but I couldn't find it, we can only choose what to do when a certain line gives an error, but the error can occur on any line. I want to run a command when the complete script gives an error?
There are many solutions to do this, but which solution helps to optimize the source code is important. Please clarify the purpose, explain more clearly