fix: daily email path

This commit is contained in:
Oliver Davies 2023-04-15 10:32:04 +01:00
parent e416da6aab
commit d144269927

2
run
View file

@ -13,7 +13,7 @@ function task:daily {
# Find the next post date based on the last post in the directory.
local next_date
if [[ "${1}" == "next" ]]; then
next_date=$(ls -1 src/daily-emails | tail -n 1 | tr -d '.md' | xargs -I {} date +%Y-%m-%d -d '{} +1 day')
next_date=$(ls -1 src/content/daily-email | tail -n 1 | tr -d '.md' | xargs -I {} date +%Y-%m-%d -d '{} +1 day')
else
next_date="${1}"
fi