From 3cd7bf4333073ad323571f4e397e07cf61dd2146 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Martin-Leg=C3=A8ne?= <robert@nic.ar> Date: Thu, 27 Sep 2018 11:13:08 -0300 Subject: [PATCH] Can not do local outside of functions --- bin/syncmode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/syncmode.sh b/bin/syncmode.sh index 21035d4..d9747b8 100755 --- a/bin/syncmode.sh +++ b/bin/syncmode.sh @@ -63,7 +63,7 @@ then then if [ -r "${BFANODEDIR}/geth.pid" ] then - local pid=$( cat ${BFANODEDIR}/geth.pid ) + pid=$( cat ${BFANODEDIR}/geth.pid ) kill -0 $pid 2>/dev/null && echo "Killing running geth." && killed=1 -- GitLab