Affiche la progression lors d'un fixperms

This commit is contained in:
Alan Garcia 2013-03-04 17:53:51 +00:00
parent d1b7378534
commit 83619b221d
1 changed files with 5 additions and 0 deletions

View File

@ -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() {