Skip to content

Commit 2ea2027

Browse files
committed
📦️(mail): make DIR_MAILS variable changeable
That allows downstream packages to e.g. split the builds of frontend/backend/mail, as it's the case in nixpkgs: NixOS/nixpkgs@5597a4f Signed-off-by: Maximilian Bosch <[email protected]>
1 parent 0cf8b9d commit 2ea2027

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mail/bin/html-to-plain-text

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -eo pipefail
33
# Run html-to-text to convert all html files to text files
4-
DIR_MAILS="../backend/core/templates/mail/"
4+
DIR_MAILS="${DIR_MAILS:-../backend/core/templates/mail}/"
55

66
if [ ! -d "${DIR_MAILS}" ]; then
77
mkdir -p "${DIR_MAILS}";

src/mail/bin/mjml-to-html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
# Run mjml command to convert all mjml templates to html files
4-
DIR_MAILS="../backend/core/templates/mail/html/"
4+
DIR_MAILS="${DIR_MAILS:-../backend/core/templates/mail}/html/"
55

66
if [ ! -d "${DIR_MAILS}" ]; then
77
mkdir -p "${DIR_MAILS}";

0 commit comments

Comments
 (0)