bash: source a file: how to end early?
by Skaperen from LinuxQuestions.org on (#52DV1)
in a script, when conditions are found to not be suitable to running the remainder of the script, it is easy to deal with ... just exit. but when bash is sourcing a file of commands, this does not work. doing exit causes the shell to exit. i just need to abort sourcing the remainder of this file. does anyone know a way for bash to do this?

