build: remove the website prefix
This commit is contained in:
parent
6a5a094e8b
commit
ae70e76324
4
run
4
run
|
@ -13,12 +13,12 @@ function task:daily {
|
||||||
# Find the next post date based on the last post in the directory.
|
# Find the next post date based on the last post in the directory.
|
||||||
local next_date
|
local next_date
|
||||||
if [[ "${1}" == "next" ]]; then
|
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
|
else
|
||||||
next_date="${1}"
|
next_date="${1}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local filepath="website/src/daily-emails/${next_date}.md"
|
local filepath="src/daily-emails/${next_date}.md"
|
||||||
|
|
||||||
shift 1
|
shift 1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue