add bugtracker manglers
Some checks failed
Build empanada images for imagefactory / buildx (push) Failing after 6s
Build empanada container images for lorax / buildx (push) Successful in 1s

This commit is contained in:
Louis Abel 2024-02-12 19:48:40 -07:00
parent 5eee8d4c76
commit 2d6eeed6ae
Signed by: label
GPG key ID: B37E62D143879B36
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#!/bin/bash
NAME="${1}"
PROJECT_ID="${2}"
printf "INSERT INTO mantis_category_table (project_id, user_id, name, status) VALUES('%s', '0', '%s', '0');\n" "${PROJECT_ID}" "${NAME}"

View file

@ -0,0 +1,12 @@
#!/bin/bash
LIST="${1}"
PROJECT_ID="${2}"
if [ ! -f "${LIST}" ]; then
echo "Not a file list"
exit 2
fi
while IFS= read -r line; do
printf "INSERT INTO mantis_category_table (project_id, user_id, name, status) VALUES('%s', '0', '%s', '0');\n" "${PROJECT_ID}" "${line}"
done < "${LIST}"