Ver código fonte

[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 anos atrás
pai
commit
70537cbe35
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      src/util/geniso

+ 1
- 1
src/util/geniso Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar