* util/grub-mkconfig_lib.in: Fix print messages replacing builtin

echo shell command by printf command.
This commit is contained in:
Yves Blusseau committed 2012-06-27 11:22:43 +02:00
1 parent 73a68bcb3a
commit 5e6a440ad7
2 files changed
+8 -3

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
2012-06-27 Yves Blusseau <blusseau@zetam.org>
* util/grub-mkconfig_lib.in: Fix print messages replacing builtin
echo shell command by printf command.
2012-06-26 Vladimir Serbinenko <phcoder@gmail.com> 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/term/arc/console.c (grub_console_init_output): Add one since * grub-core/term/arc/console.c (grub_console_init_output): Add one since
+3 -3
View File
@@ -35,7 +35,7 @@ if which gettext >/dev/null 2>/dev/null; then
: :
else else
gettext () { gettext () {
echo -n "$@" printf "%s" "$@"
} }
fi fi
@@ -308,14 +308,14 @@ print_option_help () {
print_option_help_lead=" $1" print_option_help_lead=" $1"
print_option_help_lspace="$(echo "$print_option_help_lead" | wc $print_option_help_wc)" print_option_help_lspace="$(echo "$print_option_help_lead" | wc $print_option_help_wc)"
print_option_help_fill="$((26 - print_option_help_lspace))" print_option_help_fill="$((26 - print_option_help_lspace))"
echo -n "$print_option_help_lead" printf "%s" "$print_option_help_lead"
if test $print_option_help_fill -le 0; then if test $print_option_help_fill -le 0; then
print_option_help_nl=y print_option_help_nl=y
echo echo
else else
print_option_help_i=0; print_option_help_i=0;
while test $print_option_help_i -lt $print_option_help_fill; do while test $print_option_help_i -lt $print_option_help_fill; do
echo -n " " printf " "
print_option_help_i=$((print_option_help_i+1)) print_option_help_i=$((print_option_help_i+1))
done done
print_option_help_nl=n print_option_help_nl=n