Ver Fonte

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

Daniel Gibbs há 1 ano atrás
pai
commit
1719101444
1 ficheiros alterados com 1 adições e 1 exclusões
  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