From 5d26050e97c70445a0e7448c572559fc0f39a94e Mon Sep 17 00:00:00 2001 From: Akihito Nakano Date: Mon, 31 Jan 2022 22:55:06 +0000 Subject: [PATCH] local testnet: Fix an error on startup (#2973) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Issue Addressed Resolves https://github.com/sigp/lighthouse/issues/2763#issuecomment-1024858187 ## Proposed Changes - Skip if the line is blank. 👌 --- scripts/local_testnet/kill_processes.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/local_testnet/kill_processes.sh b/scripts/local_testnet/kill_processes.sh index 4f52a5f256..be6b7f3d66 100755 --- a/scripts/local_testnet/kill_processes.sh +++ b/scripts/local_testnet/kill_processes.sh @@ -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