From 7d4b04c6024247c31b3153a19d0f2f7fef7b7387 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 --- 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 0cd49aa..1f14e26 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 -- 1.7.9.5