feat: Add the ability to split CSV and DB generation

This commit is contained in:
Carlos Solís 2025-06-02 14:21:59 +00:00
parent 4b3c32e37b
commit 424f040158
2 changed files with 65 additions and 30 deletions

View file

@ -1,4 +1,7 @@
#!/bin/bash
#Via https://stackoverflow.com/questions/59895/how-do-i-get-the-directory-where-a-bash-script-is-located-from-within-the-script
folder=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd "${folder}" || exit
for i in ./*.sh; do
shfmt -w "${i}"
shellcheck -o all -e SC2312 -f diff "${i}" | patch -p1