File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -663,13 +663,20 @@ umu_launch "$INPUT_INSTALLER" \
663
663
" $( [ " $VERYSILENT " -eq 1 ] && printf " /VERYSILENT" ) " &
664
664
665
665
# Watch the install log
666
+ _currentfile=0
667
+ _filecount=$(( "$(get_header_val 'file_count')"+ "$(get_header_val 'icon_count')"))
666
668
_readlog=1
667
669
while [ $_readlog -eq 1 ]; do
668
670
sleep 0.010
669
671
while read -r line || [ -n " $line " ]; do
670
672
case $line in
671
673
* " Dest filename: " * )
672
- show_log_file_line " $line " " $( get_header_val ' default_dir_name' ) "
674
+ # show_log_file_line "$line" "$(get_header_val 'default_dir_name')" # too slow
675
+ _currentfile=$(( _currentfile+ 1 ))
676
+ printf " \r\e[K\033[33m[\033[35mzoom-platform.sh\033[33m]\033[0m: Extracting: %d/%d [%.2f%%]" \
677
+ $_currentfile \
678
+ $_filecount \
679
+ " $( printf ' x=(%d/%d)*100; if(x<1 && x > 0) print 0; x\n' $_currentfile $_filecount | bc -l) "
673
680
;;
674
681
* " Exception message" * | * " Got EAbort exception" * )
675
682
_readlog=0
You can’t perform that action at this time.
0 commit comments