svn commit: r554894 - head/Mk/Scripts

Mathieu Arnold mat at FreeBSD.org
Wed Nov 11 13:30:04 UTC 2020


Author: mat
Date: Wed Nov 11 13:30:03 2020
New Revision: 554894
URL: https://svnweb.freebsd.org/changeset/ports/554894

Log:
  Ignore grep return value.
  
  Most of the time, we use grep in a test, where its return value is
  important.  In this instance, it is only used for filtering, and we do
  not care about its return value, so ignore it.
  
  PR:             250723
  Exp-run by:     antoine
  Differential Revision:  https://reviews.freebsd.org/D27007

Modified:
  head/Mk/Scripts/create-manifest.sh   (contents, props changed)

Modified: head/Mk/Scripts/create-manifest.sh
==============================================================================
--- head/Mk/Scripts/create-manifest.sh	Wed Nov 11 13:29:52 2020	(r554893)
+++ head/Mk/Scripts/create-manifest.sh	Wed Nov 11 13:30:03 2020	(r554894)
@@ -63,7 +63,8 @@ EOT
 
 # Then the key/values sections
 echo "deps: { "
-eval ${dp_ACTUAL_PACKAGE_DEPENDS} | grep -v -E ${dp_PKG_IGNORE_DEPENDS} | sort -u
+# Ignore grep's return value.
+eval ${dp_ACTUAL_PACKAGE_DEPENDS} | { grep -v -E ${dp_PKG_IGNORE_DEPENDS} || :; } | sort -u
 echo "}"
 
 echo "options: {"


More information about the svn-ports-all mailing list