local testnet: Fix an error on startup (#2973)

## Issue Addressed

Resolves https://github.com/sigp/lighthouse/issues/2763#issuecomment-1024858187

## Proposed Changes

- Skip if the line is blank. 👌
This commit is contained in:
Akihito Nakano 2022-01-31 22:55:06 +00:00
parent 736457b562
commit 5d26050e97

View File

@ -8,6 +8,9 @@ set -Eeuo pipefail
if [ -f "$1" ]; then
while read pid
do
# handle the case of blank lines
[[ -n "$pid" ]] || continue
echo killing $pid
kill $pid
done < $1