Skip to contentSkip to conversation

Make check_pkgs work with the Bourne shell

PATCH New John Levon 1 participant 1 message Oct 31, 2005

lore
Share & tools
lore

John Levon

author
#0 lore raw

PATCH 1/1 Make check_pkgs work with the Bourne shell

# HG changeset patch
# User [email protected]
# Node ID 90c90e3190293954aea956d92302982225b910e5 # Parent 8a8e25ecb86cdf7c9aaa11fabc8b42754b751ca6 Make check_pkgs work with the Bourne shell

docs/check_pkgs +2 -2
diff -r 8a8e25ecb86c -r 90c90e319029 docs/check_pkgs
@@ -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
 }