Skip to content

Commit

Permalink
Extract screenshots dir. on completion, if present
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Jan 8, 2025
1 parent 0bfd762 commit 6791314
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ extract_results() {
if scan_succeeded "$droplet_ip"; then
# extract results
rsync_fn crawluser@"$droplet_ip":badger-sett/results.json "$results_folder"/results."$chunk".json 2>/dev/null
# and screenshots, if any
if ssh_fn crawluser@"$droplet_ip" '[ -d ./badger-sett/screenshots ]' 2>/dev/null; then
mkdir -p "$results_folder"/screenshots
rsync_fn crawluser@"$droplet_ip":badger-sett/screenshots/* "$results_folder"/screenshots
fi
else
# extract Docker output log
if ! rsync_fn crawluser@"$droplet_ip":runscan.out "$results_folder"/erroredscan."$chunk".out 2>/dev/null; then
Expand Down

0 comments on commit 6791314

Please sign in to comment.