svn commit: r352699 - head/share/mk
Dimitry Andric
dim at FreeBSD.org
Wed Sep 25 17:53:00 UTC 2019
Author: dim
Date: Wed Sep 25 17:52:59 2019
New Revision: 352699
URL: https://svnweb.freebsd.org/changeset/base/352699
Log:
In suite.test.mk, test if ${DESTDIR} exists before attempting to run
chflags -R on it, otherwise the command will error out. (Note that
adding -f to the chflags invocation does not help, unlike with rm.)
MFC after: 3 days
Modified:
head/share/mk/suite.test.mk
Modified: head/share/mk/suite.test.mk
==============================================================================
--- head/share/mk/suite.test.mk Wed Sep 25 17:35:34 2019 (r352698)
+++ head/share/mk/suite.test.mk Wed Sep 25 17:52:59 2019 (r352699)
@@ -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
More information about the svn-src-all
mailing list