Skip to content

Commit 4482bf4

Browse files
authored
Merge pull request #71 from mattsb42-aws/rm-fix
for tox resetdocs, make sure that the directory exists to avoid potential side effects of using rm -f
2 parents 046c0ed + 6246696 commit 4482bf4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tox.ini

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,13 @@ commands =
195195
# Clear out any generated files from doc/
196196
[testenv:resetdocs]
197197
whitelist_externals =
198+
mkdir
198199
rm
199200
commands =
200-
rm -r doc/lib/generated
201+
# Make sure that the directory exists to avoid
202+
# potential side effects of using rm -f
203+
mkdir -p {toxinidir}/doc/lib/generated
204+
rm -r {toxinidir}/doc/lib/generated
201205

202206
[testenv:doc8]
203207
basepython = python3

0 commit comments

Comments
 (0)