admin-scripts/shell/check_repl_status
2024-11-30 10:29:35 -06:00

12 lines
213 B
Bash
Executable File

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