From dbc89e69af1b293b02939e35ba8a2c574bf6b2af Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Oct 2012 03:57:38 -0400 Subject: Suppress command output in ob_match_arch(). --- (limited to 'lib') diff --git a/lib/metadata.sh b/lib/metadata.sh index d749a4d..af6957c 100644 --- a/lib/metadata.sh +++ b/lib/metadata.sh @@ -175,7 +175,7 @@ ob_match_arch() sed 's/^any-/[^-]+-/;s/-any-/-[^-]+-/g;s/-any$/-[^-]+/g')" # "foo-bar-baz" == "foo-any-any" - if echo "${_obma_arch}" | grep -E "${_obma_a_ere}"; then + if echo "${_obma_arch}" | grep -E "${_obma_a_ere}" >/dev/null 2>&1; then _ob_return 0 return ${?} fi -- cgit v0.9.1