From 3686c33ad7dcd79ba813b23ddd0c1fc065867f20 Mon Sep 17 00:00:00 2001 From: Eric Claeys <83164203+EricClaeys@users.noreply.github.com> Date: Mon, 18 Sep 2023 00:49:34 -0500 Subject: [PATCH] Update timelapse.sh: bug fix: move MY_PID assignment up to before it's first used --- scripts/timelapse.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/timelapse.sh b/scripts/timelapse.sh index 1862907cc..67ce3ad1c 100755 --- a/scripts/timelapse.sh +++ b/scripts/timelapse.sh @@ -121,6 +121,7 @@ else fi fi +MY_PID="$$" if [[ ${DEBUG} == "true" ]]; then # Output one string so it's all on one line in log file. MSG="${ME}: ${GREEN}Starting" @@ -310,7 +311,6 @@ fi # timelapse is uploaded via generateForDay.sh (usually via endOfNight.sh), which called us. -MY_PID="$$" if [[ ${DEBUG} == "true" ]]; then # Output one string so it's all on one line in log file. MSG="${ME}: ${GREEN}"