installer: fix ISO check progress bar after fixing md5deep

This commit is contained in:
Silvan Calarco 2013-04-14 19:50:39 +02:00
parent 785a2efafa
commit 7c4b54bef5

View File

@ -13,7 +13,7 @@ TEXTDOMAINDIR=/opt/kde3/share/locale/
function progress_parser() {
while read -d "left" line; do
line=${line/*$CHECKFILE: /}
line=${line/*$CHECKFILE /}
line=${line/MB done*/}
elapsed=${line/MB*/}
total=${line/* of /}
@ -38,7 +38,7 @@ if [ -e "$MOUNTPATH/$CHECKFILE" -a -e "$MOUNTPATH/$MD5FILE" ]; then
md5check=`cat "$MOUNTPATH/$MD5FILE" | sed "s|\([[:alnum:]]*\).*|\1|"`
tmpfile=`tempfile 2>/dev/null` || tmpfile="/tmp/md5progress"
md5deep -e "$MOUNTPATH/$CHECKFILE" 2>&1 1>$tmpfile| progress_parser
md5deep -e "$MOUNTPATH/$CHECKFILE" 2>&1 1>$tmpfile| progress_parser
md5calc=`cat $tmpfile | sed "s|[^[:alnum:]]*\([[:alnum:]]*\).*|\1|g"`
rm -f $tmpfile