Author: dim
Date: Sat Sep 28 08:54:32 2019
New Revision: 352834
URL: https://svnweb.freebsd.org/changeset/base/352834

Log:
  MFC r352699:
  
  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.)

Modified:
  stable/12/share/mk/suite.test.mk
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/share/mk/suite.test.mk
==============================================================================
--- stable/12/share/mk/suite.test.mk    Sat Sep 28 07:33:08 2019        
(r352833)
+++ stable/12/share/mk/suite.test.mk    Sat Sep 28 08:54:32 2019        
(r352834)
@@ -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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to