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
This commit is contained in:
parent
8df0d09bdb
commit
e11365676b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user