admin-scripts/shell/check_repl_status

12 lines
209 B
Bash

#!/usr/bin/env bash
set -euo pipefail
selection=$(mcli ls minio | awk '{print $5}' | gum choose --limit=1)
gum format -t markdown "# ${selection}"
echo ""
mcli replicate status "minio/${selection}"
exit 0