Bash command ‘true || exit’ exits the program
Bash Pitfall: Why true || exit Exits Your Shell (And How To Avoid It) Summary Encountering true || exit causing an immediate shell termination? This unexpected behavior occurs when the command runs in a sourced script context. Despite true succeeding (which should skip the right side of ||), Bash still executes exit and terminates your … Read more