From 83619b221d91844f73f3564875c72cc2574fdadb Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 4 Mar 2013 17:53:51 +0000 Subject: [PATCH] Affiche la progression lors d'un fixperms --- src/fixperms.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/fixperms.sh b/src/fixperms.sh index 900e5f25..530c883a 100755 --- a/src/fixperms.sh +++ b/src/fixperms.sh @@ -97,6 +97,10 @@ doone() { echo "Setting rights and ownership for user $LOGIN having gid $GID" fi REP="$(get_html_path_by_name "$LOGIN")" + + # Clean the line, then add a ligne indicating current working directory + printf '\r%*s' "${COLUMNS:-$(tput cols)}" '' + printf "\r%${COLUMNS}s" "AlternC fixperms.sh -> working on $REP" # Set the file readable only for the AlternC User mkdir -p "$REP" @@ -111,6 +115,7 @@ doone() { read GID LOGIN || true done + echo -e "\nDone" } fixfile() {