From: Piotr Jaroszyński
Date: Mon, 29 Mar 2010 00:15:03 +0000 (+0200)
Subject: [util] Hide an expected error from the 'which' command
X-Git-Tag: v1.20.1~2714
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70537cbe3504b90f3b524cec1bb3867b04514c37;p=thirdparty%2Fipxe.git
[util] Hide an expected error from the 'which' command
Signed-off-by: Piotr Jaroszyński
Signed-off-by: Marty Connor
---
diff --git a/src/util/geniso b/src/util/geniso
index 3804c8e72..2a70b3572 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