houghi wrote:
...
> #TAGMEDIA : Add MD5SUM to the iso if tagmedia is available.
> TAGMEDIA ()
> {
>         if [ -e `type -p tagmedia` ]
>         then

...

Replace
  if [ -e `type -p tagmedia` ]
  then
by
  if type -p tagmedia &>/dev/null; then

Will avoid "type" giving an error message on stderr when tagmedia is
not found in the PATH ;)
(type -p returns 1 (error) when it cannot find and 0 (ok) when it can
find what is specified behind it)

cheers
-- 
  -o) Pascal Bleser     http://linux01.gwdg.de/~pbleser/
  /\\ <[EMAIL PROTECTED]>       <[EMAIL PROTECTED]>
 _\_v   FOSDEM 2006 -- 25+26 February 2006 in Brussels

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to