From 2b43e9312c87ab902dbf01f26f36fb9b82066332 Mon Sep 17 00:00:00 2001 From: Liz Rea Date: Fri, 31 Oct 2014 16:34:31 +1300 Subject: [PATCH] Bug 13143 - follow up - usability improvements * makes sure output is not on the line with the prompt * adds ability to clear screen after password display Same test plan as for original bug. Signed-off-by: Mark Tompsett Signed-off-by: Jonathan Druart Signed-off-by: Brendan A Gallagher --- debian/scripts/koha-passwd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/scripts/koha-passwd b/debian/scripts/koha-passwd index 0cd49aa488..1f14e26088 100755 --- a/debian/scripts/koha-passwd +++ b/debian/scripts/koha-passwd @@ -45,7 +45,11 @@ EOF for name in "$@" do if is_instance $name ; then - xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml + passwd=$(xmlstarlet sel -t -v 'yazgfs/config/pass' /etc/koha/sites/$name/koha-conf.xml); + echo "Password for $name: $passwd" + echo "Press any key to clear the screen..." + read anykey + clear else warn "Unknown instance $name." fi -- 2.11.4.GIT