#!/bin/bash set -euo pipefail shopt -s nullglob export LANG=C.UTF-8 [ "${DEBUG:-}" = 1 ] && set -x logerr() { echo "$(tput setaf 1)ERROR: $1$(tput sgr0)" 1>&2 } usage() { cat <