Fix a bug in execfunc.sh about return value.