Showing 2 changed files with 4 additions and 2 deletions
+2 -1
flightgear/fgaddon.d/fgaddon.hangar
... ...
@@ -114,11 +114,12 @@ function parse_repo_history () {
114 114
                 newprogress=$((++entry * 100 / $total))
115 115
                 if test $(( $newprogress - $progress )) -ge ${progress_granularity:-1}; then
116 116
                     progress=$newprogress
117
-                    echo "$progress% ($(sqlite_request 'select count(name) from recover_aircrafts'))"
117
+                    printf "\r%d%% (%d)" $progress $(sqlite_request 'select count(name) from recover_aircrafts')
118 118
                 fi
119 119
                 is_ac=0
120 120
             ;;
121 121
             '/list'|'/log')
122
+                printf "\r\033[K"
122 123
                 apply_revision
123 124
                 break
124 125
             ;;
+2 -1
flightgear/fgaddon.d/fgmembers.hangar
... ...
@@ -95,9 +95,10 @@ function parse_repo_history () {
95 95
         newprogress=$((i * 100 / $jq_length))
96 96
         if test $(( $newprogress - $progress )) -ge ${progress_granularity:-1}; then
97 97
             progress=$newprogress
98
-            echo "$progress% ($(sqlite_request 'select count(name) from recover_aircrafts'))"
98
+            printf "\r%d%% (%d)" $progress $(sqlite_request 'select count(name) from recover_aircrafts')
99 99
         fi
100 100
     done
101
+    printf "\r\033[K"
101 102
 
102 103
     apply_revision
103 104
 }