Skip to content

Commit

Permalink
Clean up local testnet files without prompting (#4498)
Browse files Browse the repository at this point in the history
## Issue Addressed

Addresses an issue where CI could fail due to an nonexisting file error:

```
Run ./clean.sh
rm: cannot remove '/home/runner/.lighthouse/local-testnet/geth_datadir4/geth/fastcache.tmp.1549331618': No such file or directory
Error: Process completed with exit code 1.
```

This seems to happen quite frequently now, I'm not sure exactly why but perhaps worth trying suppressing the prompt?

https://github.com/sigp/lighthouse/actions/runs/5455027574/jobs/9925916159?pr=4463
  • Loading branch information
jimmygchen committed Jul 13, 2023
1 parent 6d1420e commit af25e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/local_testnet/clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ set -Eeuo pipefail
source ./vars.env

if [ -d $DATADIR ]; then
rm -r $DATADIR
rm -rf $DATADIR
fi

0 comments on commit af25e25

Please sign in to comment.