From b3b2964752836beac198026b62c90c18245e118f Mon Sep 17 00:00:00 2001 From: "Robert C. Sheets" Date: Thu, 27 Aug 2015 10:47:48 -0700 Subject: [PATCH] When type output is not wanted, redirect all output instead of just stdout --- autogen.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogen.sh b/autogen.sh index 847cfc8..531dcb4 100755 --- a/autogen.sh +++ b/autogen.sh @@ -4,11 +4,11 @@ set -e # Commands this script needs needed='rm mkdir autoreconf echo' -if ! type $needed >/dev/null +if ! type $needed >/dev/null 2>&1 then for cmd in $needed do - if ! type $cmd >/dev/null + if ! type $cmd >/dev/null 2>&1 then # Have type print an error message for each missing command type $cmd || true