* util/grub-mkconfig_lib.in (print_option_help): Properly redirect
stderr on test calls.
This commit is contained in:
parent
8b43f587ae
commit
d336f65225
2 changed files with 8 additions and 3 deletions
|
@ -290,16 +290,16 @@ uses_abstraction () {
|
|||
|
||||
print_option_help () {
|
||||
if test x$print_option_help_wc = x; then
|
||||
if wc -L < /dev/null > /dev/null; then
|
||||
if wc -L </dev/null > /dev/null 2>&1; then
|
||||
print_option_help_wc=-L
|
||||
elif wc -m < /dev/null > /dev/null; then
|
||||
elif wc -m </dev/null > /dev/null 2>&1; then
|
||||
print_option_help_wc=-m
|
||||
else
|
||||
print_option_help_wc=-b
|
||||
fi
|
||||
fi
|
||||
if test x$grub_have_fmt = x; then
|
||||
if fmt -w 40 < /dev/null > /dev/null; then
|
||||
if fmt -w 40 </dev/null > /dev/null 2>&1; then
|
||||
grub_have_fmt=y;
|
||||
else
|
||||
grub_have_fmt=n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue