From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Levon Subject: [PATCH] Make check_pkgs work with the Bourne shell Date: Mon, 31 Oct 2005 16:06:50 +0000 Message-ID: <20051031160650.GA3778@trollied.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User levon@movementarian.org # Node ID 90c90e3190293954aea956d92302982225b910e5 # Parent 8a8e25ecb86cdf7c9aaa11fabc8b42754b751ca6 Make check_pkgs work with the Bourne shell diff -r 8a8e25ecb86c -r 90c90e319029 docs/check_pkgs --- a/docs/check_pkgs Thu Oct 27 16:50:26 2005 +0000 +++ b/docs/check_pkgs Mon Oct 31 16:05:32 2005 +0000 @@ -1,14 +1,14 @@ silent_which () { - if ! `which $1 1>/dev/null 2>/dev/null`; then + which $1 1>/dev/null 2>/dev/null || { echo "*************************************************" echo "*************************************************" echo "* WARNING: Package '$1' is required" echo "* to build Xen documentation" echo "*************************************************" echo "*************************************************" - fi + } which $1 1>/dev/null 2>/dev/null }