mirror of
https://github.com/xroche/httrack.git
synced 2026-05-17 08:26:14 +03:00
added --print-files
This commit is contained in:
@@ -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")"
|
||||
|
||||
Reference in New Issue
Block a user