如果一个条件为 true 而不杀死整个脚本,那么如何退出函数,只需返回到调用函数之前。
例子
# 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
}