From 9412da2361ee0354bc9fb97755c4f1c25fbe109e Mon Sep 17 00:00:00 2001 From: Alexei Date: Tue, 7 Jan 2025 15:54:34 -0500 Subject: [PATCH] Extract screenshots folder when running w/ Docker Following up on 535ad42 --- runscan.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/runscan.sh b/runscan.sh index 6dc8b2d..1b338af 100755 --- a/runscan.sh +++ b/runscan.sh @@ -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"