From d747c236749f13bb010bb7b0c641619aeb19571a Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 4 Sep 2023 11:49:41 +0100 Subject: [PATCH] fix: fix conditional statement in check_deps.sh The commit fixes a bug in the conditional statement of the check_deps.sh script. Previously, it incorrectly checked if dotnetversion was empty instead of checking if it was not empty. This caused an incorrect value to be assigned to depstatus and dotnetinstalled variables. The bug has been fixed by correcting the conditional statement. --- lgsm/modules/check_deps.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lgsm/modules/check_deps.sh b/lgsm/modules/check_deps.sh index 0f5b1a2a6..2818ffc11 100644 --- a/lgsm/modules/check_deps.sh +++ b/lgsm/modules/check_deps.sh @@ -280,7 +280,10 @@ fn_deps_detector() { # .NET Core: A .NET Core repo needs to be installed. elif [ "${deptocheck}" == "aspnetcore-runtime-7.0" ]; then # .NET is not installed. - if [ -z "${dotnetversion}" ]; then + if [ -n "${dotnetversion}" ]; then + depstatus=0 + dotnetinstalled=true + else depstatus=1 dotnetinstalled=false fi