build: remove the website prefix

This commit is contained in:
Oliver Davies 2023-03-21 21:01:55 +00:00
parent 6a5a094e8b
commit ae70e76324

4
run
View file

@ -13,12 +13,12 @@ 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 website/src/daily-emails | tail -n 1 | tr -d '.md' | xargs -I {} date +%Y-%m-%d -d '{} +1 day')
next_date=$(ls -1 src/daily-emails | tail -n 1 | tr -d '.md' | xargs -I {} date +%Y-%m-%d -d '{} +1 day')
else
next_date="${1}"
fi
local filepath="website/src/daily-emails/${next_date}.md"
local filepath="src/daily-emails/${next_date}.md"
shift 1