make+scripts: fix rpc-check command
This commit is contained in:
2 files changed
+12
-1
No files matched your search
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
for proto in $(find . -name "*.proto"); do
|
||||
for rpc in $(awk '/ rpc /{print $2}' "$proto"); do
|
||||
yaml=${proto%%.proto}.yaml
|
||||
if ! grep -q "$rpc" "$yaml"; then
|
||||
echo "RPC $rpc not added to $yaml file"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
done
|
||||
Reference in new issue
Block a user