瀏覽代碼

[util] Hide an expected error from the 'which' command

Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Marty Connor <mdc@etherboot.org>
tags/v1.20.1
Piotr Jaroszyński 14 年之前
父節點
當前提交
70537cbe35
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/util/geniso

+ 1
- 1
src/util/geniso 查看文件

@@ -23,7 +23,7 @@ then
23 23
 fi
24 24
 
25 25
 # There should either be mkisofs or the compatible genisoimage program
26
-mkisofs=`which mkisofs genisoimage | head -n1`
26
+mkisofs=`which mkisofs genisoimage 2>/dev/null | head -n1`
27 27
 if [ -z $mkisofs ]
28 28
 then
29 29
 	echo $0: mkisofs or genisoimage not found, please install or set PATH

Loading…
取消
儲存