From 7c4b54bef5f2f0a95d0d61c9474be1ceeb21a9da Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 14 Apr 2013 19:50:39 +0200 Subject: [PATCH] installer: fix ISO check progress bar after fixing md5deep --- installer/md5progress.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/md5progress.sh b/installer/md5progress.sh index d9f97b5..5d35d63 100755 --- a/installer/md5progress.sh +++ b/installer/md5progress.sh @@ -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