提交 2184d75b 编写于 作者: B Blue Swirl

trace: fix a regex portability problem

The /bin/sh in Milax has problems with the regex:
Error: invalid trace backend
Please choose a supported trace backend.

Fix it by escaping ')' like the regexes with '('.
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 dda85211
......@@ -39,7 +39,7 @@ get_args()
{
local args
args=${1#*\(}
args=${args%)*}
args=${args%\)*}
echo "$args"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册