All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Make check_pkgs work with the Bourne shell
@ 2005-10-31 16:06 John Levon
  0 siblings, 0 replies; only message in thread
From: John Levon @ 2005-10-31 16:06 UTC (permalink / raw)
  To: xen-devel


# 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
 }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-10-31 16:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-31 16:06 [PATCH] Make check_pkgs work with the Bourne shell John Levon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.