stockholm/bin/cac-listservers
2015-05-21 01:56:08 +02:00

13 lines
241 B
Bash
Executable File

#! /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