fix compatible for sh. rename api. '-' is not allowed in the function name.

This commit is contained in:
neil
2016-04-16 22:31:17 +08:00
parent eccec5f6d5
commit 158f22f733
6 changed files with 8 additions and 8 deletions

View File

@@ -1200,7 +1200,7 @@ issue() {
return 1
fi
addcommand="$_currentRoot_add"
addcommand="${_currentRoot}_add"
if ! _exists $addcommand ; then
_err "It seems that your api file is not correct, it must have a function named: $addcommand"
return 1