From e1438871e50f97ba5b4c550da067fc06bda4a19f Mon Sep 17 00:00:00 2001 From: freesource Date: Mon, 23 Jul 2001 19:23:10 +0000 Subject: [PATCH] Just some minor changes. --- gBootRoot | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gBootRoot b/gBootRoot index e3cabf8..02d55f0 100644 --- a/gBootRoot +++ b/gBootRoot @@ -1321,7 +1321,7 @@ sub file_ok_sel { if ($container[ROOT_DEVICE]) { my $file = sys("which file > /dev/null 2>&1"); if ($file == 0) { - open(F,"file $container[ROOT_DEVICE] > /dev/null 2>&1|"); # no error check + open(F,"file $container[ROOT_DEVICE] |"); # no error check # here while () { if (/gzip/) { @@ -1330,6 +1330,9 @@ sub file_ok_sel { elsif (/bzip2/) { $bz2_toggle->set_active( $true ); } + else { + info(0, "Neither gz or bz2 compression found\n"); + } } } } @@ -1390,7 +1393,7 @@ sub entry { my $file = sys("which file"); if ($file == 0) { if ($container[ROOT_DEVICE]) { - open(F,"file $container[ROOT_DEVICE] > /dev/null 2>&1|"); # no error check here + open(F,"file $container[ROOT_DEVICE] |"); # no error check here while () { if (/gzip/) { $gz_toggle->set_active( $true ); @@ -1398,6 +1401,10 @@ sub entry { elsif (/bzip2/) { $bz2_toggle->set_active( $true ); } + else { + info(0, + "Neither gz or bz2 compression found\n"); + } } } }