Skip to content

Commit

Permalink
Fix message in judgehost cleanup.
Browse files Browse the repository at this point in the history
This is likely incorrect for historical reasons since we changed the
directory structure.

Previous output:
```
Cleaning up judging data...
  in goo-0/endpoint-default:
    removing judging data for contest ./100
...
```

New output:
```
Cleaning up judging data...
  in goo-0/endpoint-default:
    removing judging data for submission s100
...
```
  • Loading branch information
meisterT committed Nov 23, 2023
1 parent f866ca5 commit dea66f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc-tools/dj_judgehost_cleanup.in
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ cleanup_judgings() {
[ -d "$d" ] || continue
cd "$d"
echo " in $d:"
find . -maxdepth 1 -type d -regex '\./[0-9]+' | while IFS= read -r contest; do
echo " removing judging data for contest $contest"
rm -rf "${contest:?}/"
find . -maxdepth 1 -type d -regex '\./[0-9]+' | while IFS= read -r submission; do
echo " removing judging data for submission s${submission#./}"
rm -rf "${submission:?}/"
done
cd - >/dev/null
done
Expand Down

0 comments on commit dea66f6

Please sign in to comment.