2013-02-04 08:27:21 +00:00
|
|
|
Index: dd_rhelp-0.3.0/dd_rhelp
|
|
|
|
|
===================================================================
|
|
|
|
|
--- dd_rhelp-0.3.0.orig/dd_rhelp
|
|
|
|
|
+++ dd_rhelp-0.3.0/dd_rhelp
|
2014-03-10 17:00:52 +00:00
|
|
|
@@ -986,9 +986,9 @@ infoline="^dd_rescue: (info):"
|
|
|
|
|
summary_first_line="$infoline \+ipos:.*, opos:.*, xferd:.*$"
|
2013-02-04 08:27:21 +00:00
|
|
|
|
|
|
|
|
## infoline has been added to Summary line in dd_rescue output recently (> 1.14, <= 1.25)
|
|
|
|
|
string="\($infoline\)\? *Summary for [^:]\+ -> [^:]\+:\$"
|
|
|
|
|
-eofstring="$infoline [^(]\+ ([0-9]\+\.[0-9]k): EOF\$"
|
2014-03-10 17:00:52 +00:00
|
|
|
+eofstring="$infoline [^(]\+ ([0-9]\+\.[0-9]k[^)]*): EOF.*\$"
|
2013-02-04 08:27:21 +00:00
|
|
|
nb_stars=$[ $bar_lines * $COLUMNS ] # nb of char to display progress bar...
|
|
|
|
|
badblockline_regexp="^Bad block: [0-9]\+\$"
|
|
|
|
|
|
2014-03-10 17:00:52 +00:00
|
|
|
|
|
|
|
|
@@ -1082,9 +1082,9 @@ function get_eof() {
|
|
|
|
|
else
|
|
|
|
|
eoflines="$1"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
- eoflines=$(echo "$eoflines" | "${grep}" "$eofstring" | sed_compat 's/^dd_rescue: \(info\): .* \(([0-9\.]+)k\): EOF.*$/\1/g')
|
|
|
|
|
+ eoflines=$(echo "$eoflines" | "${grep}" "$eofstring" | sed_compat 's/^dd_rescue: \(info\): .* \(([0-9\.]+)k[^\)]*\): EOF.*$/\1/g')
|
|
|
|
|
|
|
|
|
|
for i in $eoflines; do
|
|
|
|
|
|
|
|
|
|
## XXXvlab: what the f*ck ?
|