forked from phhusson/treble_presets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtests.sh
More file actions
15 lines (11 loc) · 669 Bytes
/
Copy pathtests.sh
File metadata and controls
15 lines (11 loc) · 669 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -xe
#Test validty
jq . < infos.json > /dev/null
#Ensure all nodes have a maintainer with a name
jq '.[] | .maintainer | has("name") | not | select(.) | error("Missing maintainer name")' < infos.json > /dev/null
#Ensure all nodes have a community with telegram link
jq '.[] | .community | has("telegram") | not | select(.) | error("Missing Telegram community")' < infos.json > /dev/null
#Ensure all nodes have a way to match a firmware
jq '.[] | has("match_property") | not | select(.) | error("Missing match_property")' < infos.json > /dev/null
jq '.[] | has("match_value") | not | select(.) | error("Missing match_value")' < infos.json > /dev/null