scripts: add escape in check_json_rpc string

On my system, the git grep for ^SPDK_RPC_REGISTER(
fails because the ( is unmatched.  It seems we should
escape it, although clearly our CI systems don't seem
to require it.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I6412e27e79488616743f76b2d9eac8f62b996078

Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8393
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: <dongx.yi@intel.com>
Reviewed-by: Ziye Yang <ziye.yang@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Jim Harris 2021-06-16 04:32:15 -07:00
parent 10c7d133be
commit 79b6771f61

View File

@ -575,7 +575,7 @@ function check_json_rpc() {
echo "Missing JSON-RPC documentation for ${rpc}"
rc=1
fi
done < <(git grep -h "^SPDK_RPC_REGISTER(" ':!test/*')
done < <(git grep -h "^SPDK_RPC_REGISTER\(" ':!test/*')
return $rc
}