Skip to content

Commit

Permalink
Extract screenshots folder when running w/ Docker
Browse files Browse the repository at this point in the history
Following up on 535ad42
  • Loading branch information
ghostwords committed Jan 7, 2025
1 parent 798e5e6 commit 9412da2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion runscan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,14 @@ if [ "$GIT_PUSH" = "1" ] ; then
update_badger_sett_repo
fi

# copy the updated results and log file out of the docker volume
# move the updated results and log file out of the docker volume
mv "$DOCKER_OUT"/results.json "$DOCKER_OUT"/log.txt ./

# if present, also move the screenshots directory
if [ -d "$DOCKER_OUT"/screenshots ]; then
mv "$DOCKER_OUT"/screenshots ./
fi

# get the version string from the results file
VERSION=$(python3 -c "import json; print(json.load(open('results.json'))['version'])")
echo "Scan successful. Seed data version: $VERSION"
Expand Down

0 comments on commit 9412da2

Please sign in to comment.