Skip to content

Commit c6245fd

Browse files
Merge pull request laradock#908 from bestlong/fix-hugo-rm-fail
Fixing Travis-CI hugo doc build failed
2 parents a414e54 + c539c63 commit c6245fd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

travis-build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ if [ -n "${HUGO_VERSION}" ]; then
3030
mv ./${HUGO_BIN}/${HUGO_BIN} $HOME/bin/hugo
3131

3232
# Remove existing docs
33-
rm -r ./docs
33+
if [ -d "./docs" ]; then
34+
rm -r ./docs
35+
fi
3436

3537
# Build docs
3638
cd DOCUMENTATION

0 commit comments

Comments
 (0)