[gPXE-devel] [PATCH 2/2] [util] Hide an expected error from which

Piotr Jaroszyński p.jaroszynski at gmail.com
Fri Apr 2 14:45:09 EDT 2010


Signed-off-by: Piotr Jaroszyński <p.jaroszynski at gmail.com>
---
 src/util/geniso |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/geniso b/src/util/geniso
index 3804c8e..2a70b35 100755
--- a/src/util/geniso
+++ b/src/util/geniso
@@ -23,7 +23,7 @@ then
 fi
 
 # There should either be mkisofs or the compatible genisoimage program
-mkisofs=`which mkisofs genisoimage | head -n1`
+mkisofs=`which mkisofs genisoimage 2>/dev/null | head -n1`
 if [ -z $mkisofs ]
 then
 	echo $0: mkisofs or genisoimage not found, please install or set PATH
-- 
1.7.0.3



More information about the gPXE-devel mailing list