Move non-Nix bash scripts

This commit is contained in:
Oliver Davies 2025-03-29 23:34:25 +00:00
parent 7c9ffc116e
commit f2eea2d397
21 changed files with 11 additions and 10 deletions

View file

@ -1,17 +0,0 @@
#!/usr/bin/env bash
if [[ "$1" == "" ]]; then
echo "Usage: ${0##*/} <filename>"; exit 2
fi
set -euo pipefail
filename="${1}"
shift 1
pv "${filename}" \
| zcat \
| docker compose exec -T "${SERVICE_NAME:-database}" mysql \
-p"${DB_PASSWORD:-app}" \
-u"${DB_USER:-app}" \
"${DB_NAME:-app}"