Parcourir la source

fix: install microsoft repo dotnet-7.0 not available in standard repos

Daniel Gibbs il y a 1 an
Parent
commit
1719101444
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lgsm/modules/check_deps.sh

+ 1 - 1
lgsm/modules/check_deps.sh

@@ -284,7 +284,7 @@ fn_deps_detector() {
 	# .NET Core: A .NET Core repo needs to be installed.
 	elif [ "${deptocheck}" == "dotnet-runtime-7.0" ]; then
 		# .NET is not installed.
-		if [ -n "${dotnetversion}" ]; then
+		if dotnet --list-runtimes | grep -q "Microsoft.NETCore.App 7.0"; then
 			depstatus=0
 			dotnetinstalled=true
 		else