Skip to content

Commit

Permalink
pdsadmin/account fix curl command
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob2161 committed Feb 22, 2024
1 parent fdb3f9a commit 776dee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdsadmin/account.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ SUBCOMMAND="${1:-}"
# account list
#
if [[ "${SUBCOMMAND}" == "list" ]]; then
DIDS="$(curl_cmd \
DIDS="$(curl_cmd_get \
"https://${PDS_HOSTNAME}/xrpc/com.atproto.sync.listRepos?limit=100" | jq --raw-output '.repos[].did'
)"
OUTPUT='[{"handle":"Handle","email":"Email","did":"DID"}'
for did in ${DIDS}; do
ITEM="$(curl_cmd \
ITEM="$(curl_cmd_get \
--user "admin:${PDS_ADMIN_PASSWORD}" \
"https://${PDS_HOSTNAME}/xrpc/com.atproto.admin.getAccountInfo?did=${did}"
)"
Expand Down

0 comments on commit 776dee3

Please sign in to comment.