Skip to content

Commit 2af4d50

Browse files
authored
build: 🐛 rm needs -f so it doesn't error when there is no file (#49)
## Description If the qmd files don't exist, `rm` gives an error. So this is to force it to not give an error. <!-- Select quick/in-depth as necessary --> Doesn't need a review.
1 parent 2da8db9 commit 2af4d50

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

justfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ format-python:
2525
build-website:
2626
# To let Quarto know where python is.
2727
export QUARTO_PYTHON=.venv/bin/python3
28-
# Delete any previously built files from quartodoc
29-
rm docs/reference/*.qmd
28+
# Delete any previously built files from quartodoc.
29+
# -f is to not give an error if the files don't exist yet.
30+
rm -f docs/reference/*.qmd
3031
poetry run quartodoc build
3132
poetry run quarto render --execute
3233

0 commit comments

Comments
 (0)