From 271c4a68dc24c804e6f560be954d3763753780e5 Mon Sep 17 00:00:00 2001 From: EricClaeys <83164203+EricClaeys@users.noreply.github.com> Date: Thu, 7 Oct 2021 20:30:22 -0500 Subject: [PATCH 1/2] add error check to allsky.sh Some people have reported problems that appear to be related to variable.sh not working. --- allsky.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/allsky.sh b/allsky.sh index 9b2c71381..3983643c5 100755 --- a/allsky.sh +++ b/allsky.sh @@ -11,6 +11,10 @@ fi cd "${ALLSKY_HOME}" source "${ALLSKY_HOME}/variables.sh" +if [ -z "${ALLSKY_CONFIG}" ]; then + echo "${RED}*** ERROR: variables not set, can't continue!${NC}" + exit 1 +fi # Reset auto camera selection, so config.sh does not pick up old camera selection. > "${ALLSKY_CONFIG}/autocam.sh" From e7ff2186847b77140bd7c9717da3bd705833b94b Mon Sep 17 00:00:00 2001 From: EricClaeys <83164203+EricClaeys@users.noreply.github.com> Date: Thu, 7 Oct 2021 20:37:41 -0500 Subject: [PATCH 2/2] Fixed ALLSKY_HOME --- allsky.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allsky.sh b/allsky.sh index 3983643c5..1d24fb235 100755 --- a/allsky.sh +++ b/allsky.sh @@ -5,7 +5,7 @@ echo " ***** Starting AllSky *****" if [ -z "${ALLSKY_HOME}" ] then - export ALLSKY_HOME="$(realpath $(dirname "${BASH_ARGV0}")/..)" + export ALLSKY_HOME="$(realpath $(dirname "${BASH_ARGV0}"))" fi cd "${ALLSKY_HOME}"