Scripts and handling errors

Advertisement

charris
Guest

Scripts and handling errors

Is there a way to exit the script early when an error occurs? My scripts continue executing even if a command fails, and I would like to not have this behavior.

Thanks for the help,
charris

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,123
Location:
Prague, Czechia

Re: Scripts and handling errors

Use this command:
option batch abort

See
help option

Reply with quote

Advertisement

You can post new topics in this forum