Skip to content

Commit d53b9d1

Browse files
devcontainers-botgithub-actions
andauthored
[Updates] Automated vendor dotnet-install script (#750)
* Automated dotnet-install script update * Bump version --------- Co-authored-by: github-actions <[email protected]>
1 parent 710103a commit d53b9d1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/dotnet/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "dotnet",
3-
"version": "2.0.1",
3+
"version": "2.0.2",
44
"name": "Dotnet CLI",
55
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/dotnet",
66
"description": "This Feature installs the latest .NET SDK, which includes the .NET CLI and the shared runtime. Options are provided to choose a different version or additional versions.",

src/dotnet/scripts/vendor/dotnet-install.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,8 +423,13 @@ get_normalized_os() {
423423
echo "$osname"
424424
return 0
425425
;;
426+
macos)
427+
osname='osx'
428+
echo "$osname"
429+
return 0
430+
;;
426431
*)
427-
say_err "'$user_defined_os' is not a supported value for --os option, supported values are: osx, linux, linux-musl, freebsd, rhel.6. If you think this is a bug, report it at https://github.com/dotnet/install-scripts/issues."
432+
say_err "'$user_defined_os' is not a supported value for --os option, supported values are: osx, macos, linux, linux-musl, freebsd, rhel.6. If you think this is a bug, report it at https://github.com/dotnet/install-scripts/issues."
428433
return 1
429434
;;
430435
esac

0 commit comments

Comments
 (0)