diff options
author | JP Ungaretti <git@jungaretti.com> | 2023-03-01 04:37:38 +0300 |
---|---|---|
committer | JP Ungaretti <git@jungaretti.com> | 2023-03-01 04:37:38 +0300 |
commit | 519c3ef6d6886a0a03249ab2ab8dcba66cd0d6c5 (patch) | |
tree | 81d86317fba651fcbfe4f879262249e4977c6476 /src | |
parent | 1ff0df6f4e4b2af57acd452d5acadd929d3cc910 (diff) |
Clean up comments
Diffstat (limited to 'src')
-rw-r--r-- | src/dotnet/install.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/dotnet/install.sh b/src/dotnet/install.sh index fe84978..79b6691 100644 --- a/src/dotnet/install.sh +++ b/src/dotnet/install.sh @@ -33,18 +33,19 @@ check_packages() { } # Installs a version of .NET using the DOTNET_INSTALLER_SCRIPT +# The version must be 'latest', use the form 'N', or use the form 'N.M.O' install_version() { local version="$1" local channel="LTS" local runtimeArg="" - # If version is just a major value, assume it is a channel + # If version is just a major value (form 'N'), assume it is a channel if [[ "$version" =~ ^[0-9]+$ ]]; then channel="$version.0" version='latest' fi - # Make sure the version is formatted correctly + # Make sure the version is formatted correctly (form 'N' is handled before this) if ! [[ "$version" = 'latest' || "$version" =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]; then echo "version must be 'latest' or use the form 'N.M.O'" return 1 |