]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-mkconfig_lib.in (print_option_help): Properly redirect
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 27 May 2012 11:14:42 +0000 (13:14 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sun, 27 May 2012 11:14:42 +0000 (13:14 +0200)
stderr on test calls.

ChangeLog
util/grub-mkconfig_lib.in

index 7f1ddea4309e2bc2464a604ce7245696153e1796..7e932d412d07c8cbbbab636d921dc8afc7a57eef 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
+       stderr on test calls.
+
 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
index d0b7a7073496614957cfa7be1f67e49d2ed5e69b..606cb04aa1744fd9a8c1036db4ce3d55f2305a7f 100644 (file)
@@ -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;