From 656208b5048c6990509a8a7fca794897548c2229 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. --- 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.9.1