Browse Source

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.
pull/4304/head
Daniel Gibbs 2 years ago
parent
commit
d747c23674
  1. 5
      lgsm/modules/check_deps.sh

5
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

Loading…
Cancel
Save