Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 28 Sep 2019 08:54:32 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r352834 - stable/12/share/mk
Message-ID:  <201909280854.x8S8sWQQ036883@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909280854.x8S8sWQQ036883>