perf: control command support mod name with n9e- prefix (#661)

Co-authored-by: 周晓明 <zhouxiaoming@star-net.cn>
This commit is contained in:
joyexpr 2021-04-20 10:30:48 +08:00 committed by GitHub
parent 41efc66d25
commit 6693b131d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -206,9 +206,10 @@ exec()
params=${@:2}
if [ ${#2} -gt 0 ]; then
for param in $params
for mod in $params
do
$1 $param
mod=${mod#n9e-}
$1 $mod
if [ "x${mod}" = "xall" ]; then
break
fi