Skip to content

Commit 1719101

Browse files
committed
fix: install microsoft repo dotnet-7.0 not available in standard repos
1 parent 71d551e commit 1719101

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lgsm/modules/check_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ fn_deps_detector() {
284284
# .NET Core: A .NET Core repo needs to be installed.
285285
elif [ "${deptocheck}" == "dotnet-runtime-7.0" ]; then
286286
# .NET is not installed.
287-
if [ -n "${dotnetversion}" ]; then
287+
if dotnet --list-runtimes | grep -q "Microsoft.NETCore.App 7.0"; then
288288
depstatus=0
289289
dotnetinstalled=true
290290
else

0 commit comments

Comments
 (0)