added --print-files

This commit is contained in:
Xavier Roche
2013-06-09 18:33:40 +00:00
parent 5584e13640
commit 2cc13c3e1f

View File

@@ -66,7 +66,7 @@ function start-crawl {
--debug)
verbose=1
;;
--no-purge|--summary)
--no-purge|--summary|--print-files)
;;
--errors|--files|--found|--not-found|--directory)
pos=$[${pos}+1]
@@ -125,6 +125,9 @@ function start-crawl {
--summary)
grep -E "^HTTrack Website Copier/[^ ]* mirror complete in " "${tmp}/hts-log.txt"
;;
--print-files)
find "${tmp}" -type f -mindepth 1
;;
--errors)
shift
assert_equals "checking errors" "$1" "$(grep -iEc "^[0-9\:]*[[:space:]]Error:" "${tmp}/hts-log.txt")"