getFiles: Refactor progress info
This commit is contained in:
parent
e50bf63f16
commit
3a4e43475a
@ -67,6 +67,9 @@ getFiles() {
|
||||
)
|
||||
echo 'COMMIT;' >&3
|
||||
(( cron )) || echo -n $'\r'
|
||||
echo "${count:-0} files found, ${new:=0} new or changed."$'\033[K'
|
||||
if (( count ))
|
||||
then
|
||||
echo "$count files found${new:+, $new new or changed}." \
|
||||
$'\033[K'
|
||||
unset count
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user