bash - Exit Shell Script Based on Process Exit Code - Stack Overflow

bash - Exit Shell Script Based on Process Exit Code - Stack Overflow

瀏覽:1213
日期:2025-06-16
I have a shell script that executes a number of commands. How do I make the shell script exit if any of the commands exit with a non-zero exit code? ... If you just call exit in the bash with no parameters, it will return the exit code of the last command...看更多