diff --git a/share/mk/suite.test.mk b/share/mk/suite.test.mk index d91d3df757d8..69cd02d684de 100644 --- a/share/mk/suite.test.mk +++ b/share/mk/suite.test.mk @@ -120,7 +120,7 @@ beforecheck: # etc. aftercheck: @cd ${.CURDIR} && ${MAKE} clean - @chflags -R 0 "${DESTDIR}" + @test ! -e ${DESTDIR} || chflags -R 0 "${DESTDIR}" @rm -Rf "${DESTDIR}" .endif