Fixed check for templates

This commit is contained in:
Keith Irwin 2024-08-01 11:44:58 -06:00
parent 8710676b46
commit 24a31bea74
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86

4
mktodo
View File

@ -13,10 +13,10 @@ source ./env
if ! [ -d "${NOTES_DIR}" ]; then
mkdir "${NOTES_DIR}" || exit 2
fi
if ! [ -d "${DAILY_TEMPLATE}" ]; then
if ! [ -f "${DAILY_TEMPLATE}" ]; then
cp "./daily.sample.md" "${DAILY_TEMPLATE}" || exit 3
fi
if ! [ -d "${MONTHLY_TEMPLATE}" ]; then
if ! [ -f "${MONTHLY_TEMPLATE}" ]; then
cp "./monthly.sample.md" "${MONTHLY_TEMPLATE}" || exit 4
fi