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:
parent
736457b562
commit
5d26050e97
@ -8,6 +8,9 @@ set -Eeuo pipefail
|
|||||||
if [ -f "$1" ]; then
|
if [ -f "$1" ]; then
|
||||||
while read pid
|
while read pid
|
||||||
do
|
do
|
||||||
|
# handle the case of blank lines
|
||||||
|
[[ -n "$pid" ]] || continue
|
||||||
|
|
||||||
echo killing $pid
|
echo killing $pid
|
||||||
kill $pid
|
kill $pid
|
||||||
done < $1
|
done < $1
|
||||||
|
Loading…
Reference in New Issue
Block a user