Posts Tagged ‘break’

How do you break on error in a shell script?

I have a shell script that takes in a filename as an argument. If the file doesn’t exist, the error comes to the command line but how do you get the program to EXIT if it has any errors while running?