mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-29 15:43:56 +00:00
Add a precautionary assert to test function 'transform_list_json'
This commit is contained in:
parent
a82babf9db
commit
b822378c37
@ -268,4 +268,5 @@ transform_list_json() {
|
||||
.["__index"] = $index
|
||||
]
|
||||
' "$1" >"$2"
|
||||
assert --message="$1 contains a well-formed JSON list" [ $? -eq 0 -a -s "$2" ]
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user