getFiles: Refactor progress info
This commit is contained in:
parent
c68ec5388d
commit
e7bcb49196
@ -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