mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 09:26:37 +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
|
.["__index"] = $index
|
||||||
]
|
]
|
||||||
' "$1" >"$2"
|
' "$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