Fixed check for templates
This commit is contained in:
parent
8710676b46
commit
24a31bea74
4
mktodo
4
mktodo
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user