summaryrefslogtreecommitdiff
path: root/bin/thomas
blob: f3eca1cd496af7b257ede0281d074d5d4a590f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

FILE=$1
OUTPUT_FOLDER=output

mkdir -p $OUTPUT_FOLDER

if ! command -v "mo" 2> /dev/null; then
   echo "You don't have mo installed. Exiting."
   exit 2
fi

source thomas.env && cat templates/$1 | mo > $OUTPUT_FOLDER/$FILE