mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
12 lines
259 B
Bash
Executable File
12 lines
259 B
Bash
Executable File
#!/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
|