blob: 1e815d2aff62136a557d5e775c60682c98883e8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#! /bin/sh
set -euf
listservers=$(_cac_get_api_v1 listservers)
status=$(echo "$listservers" | jq -r .status)
if [ "$status" = ok ]; then
echo "$listservers" | jq -r .data
else
echo "$0: bad listservers status: $status" >&2
exit 1
fi
|