From 45e61ee8a68fe557882fd7dce31fd1cf41e7c808 Mon Sep 17 00:00:00 2001 From: Vincent Riquer Date: Wed, 27 Feb 2013 13:14:42 +0100 Subject: [PATCH] nice progress --- atom | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/atom b/atom index b592d30..c52042d 100755 --- a/atom +++ b/atom @@ -512,12 +512,17 @@ getFiles() { filename $filename EOWhere ) - echo -ne '\r'$sourcefileid + case $(( ++count % 4 )) in + 0) echo -ne '\r|' ;; + 1) echo -ne '\r/' ;; + 2) echo -en '\r-' ;; + 3) echo -ne '\r\\' ;; + esac done < <( find "$sourcepath" -type f -printf "%T@ %s %P\n" ) echo 'COMMIT;' >&3 - echo + echo -e "\r$count files found." } updateMimes() {