소스 검색

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

Daniel Gibbs 1 년 전
부모
커밋
1719101444
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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