When type output is not wanted, redirect all output instead of just stdout
This commit is contained in:
@@ -4,11 +4,11 @@ set -e
|
|||||||
|
|
||||||
# Commands this script needs
|
# Commands this script needs
|
||||||
needed='rm mkdir autoreconf echo'
|
needed='rm mkdir autoreconf echo'
|
||||||
if ! type $needed >/dev/null
|
if ! type $needed >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
for cmd in $needed
|
for cmd in $needed
|
||||||
do
|
do
|
||||||
if ! type $cmd >/dev/null
|
if ! type $cmd >/dev/null 2>&1
|
||||||
then
|
then
|
||||||
# Have type print an error message for each missing command
|
# Have type print an error message for each missing command
|
||||||
type $cmd || true
|
type $cmd || true
|
||||||
|
|||||||
Reference in New Issue
Block a user