mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-27 16:18:16 -04:00
Moved the filter_outfile() function here since it was identical
in devices.test and itemize.test.
This commit is contained in:
1 parent
3ed8eafccb
commit
757287d8a5
1 file changed
+14
@@ -47,6 +47,20 @@ runtest() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Call this if you want to filter out verbose messages (-v or -vv) from
|
||||
# the output of an rsync run (whittling the output down to just the file
|
||||
# messages). This isn't needed if you use -i without -v.
|
||||
filter_outfile() {
|
||||
sed -e '/^building file list /d' \
|
||||
-e '/^created directory /d' \
|
||||
-e '/^done$/d' \
|
||||
-e '/ --whole-file$/d' \
|
||||
-e '/^total: /d' \
|
||||
-e '/^$/,$d' \
|
||||
<"$outfile" >"$outfile.new"
|
||||
mv "$outfile.new" "$outfile"
|
||||
}
|
||||
|
||||
printmsg() {
|
||||
echo "$1"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user