Как вы выходите из функции, если условие истинно, не убивая всего script, просто вернитесь назад, прежде чем вы вызовете функцию.
Пример
# Start script
Do scripty stuff here
Ok now lets call FUNCT
FUNCT
Here is A to come back to
function FUNCT {
if [ blah is false ]; then
exit the function and go up to A
else
keep running the function
fi
}