13 lines
241 B
Bash
Executable File
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
|