Info

exit 0

In a shell script, exit 0 typically indicates that the script has completed successfully and the shell should exit with a status code of 0. A status code of 0 typically indicates success, while non-zero status codes typically indicate an error or failure. exit command is used to exit from the shell script with a status of N. If N is omitted, the exit status is that of the last command executed.