[Ovirt-devel] [PATCH node] Cleaned up the input prompts when configuring partitions.
Darryl L. Pierce
dpierce at redhat.com
Tue Jan 27 15:34:52 UTC 2009
Prompts were putting the question mark on a separate line from the
prompt. This patch moves it to the end of the line with the prompt.
Signed-off-by: Darryl L. Pierce <dpierce at redhat.com>
---
scripts/ovirt-config-storage | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/scripts/ovirt-config-storage b/scripts/ovirt-config-storage
index 45355fd..b096a57 100755
--- a/scripts/ovirt-config-storage
+++ b/scripts/ovirt-config-storage
@@ -174,10 +174,8 @@ do_configure()
eval "min_size=\$$min_size_var"
while true; do
- printf "\nChange $part partition size. (Def. $size MB), "
- printf "Min. $min_size MB, "
- printf "Max. ~$space_left MB)\n"
- read -ep "? "
+ printf "\n"
+ read -ep "Change $part partition size. (Def. $size MB), Min. $min_size MB, Max. ~$space_left MB)? "
mb_input=$REPLY
test -z "$mb_input" && mb_input=$size
local size_used=0
--
1.6.0.6
More information about the ovirt-devel
mailing list