fix: daily email path
This commit is contained in:
parent
e416da6aab
commit
d144269927
2
run
2
run
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue