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