Don't hard-code the name of the patch.

Nobody's gonna rename the patches, so just make them unique enough
so that I can upload them to the ingress directory without conflicts.
This commit is contained in:
Jordan Bancino 2022-07-29 15:17:55 -04:00
parent f1c0d6b40e
commit 3fd5e448b2

View file

@ -144,15 +144,18 @@ recipe_patch() {
EDITOR=vi
fi
PATCH_FILE="${MXID}_$(date +%s).patch"
(
printf 'From: "%s" <%s>\n' "$DISPLAY_NAME" "$MXID"
echo "Date: $(date +%Y-%m-%d)"
echo "Date: $(date)"
echo "Subject: "
echo
cvs diff -uNp $PATCH | grep -v '^\? '
) > "telodendria-patch.patch"
) > "$PATCH_FILE"
"$EDITOR" "telodendria-patch.patch"
"$EDITOR" "$PATCH_FILE"
echo "$PATCH_FILE"
}
for recipe in $@; do