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"