Skip to content

Commit 68d5a6c

Browse files
committed
Clean up local testnet files without prompting (#4498)
## 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
1 parent 5569d97 commit 68d5a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/local_testnet/clean.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ set -Eeuo pipefail
99
source ./vars.env
1010

1111
if [ -d $DATADIR ]; then
12-
rm -r $DATADIR
12+
rm -rf $DATADIR
1313
fi

0 commit comments

Comments
 (0)