diff options
author | JP Ungaretti <git@jungaretti.com> | 2023-03-01 22:18:29 +0300 |
---|---|---|
committer | JP Ungaretti <git@jungaretti.com> | 2023-03-01 22:18:29 +0300 |
commit | ca6f581c8f1351886c6d802a287a7ec4e4c98f87 (patch) | |
tree | e4371ed715d21af76e13733a4e3fff59a47e6436 /src | |
parent | 5bb6f303a1e23eeac37061a8025c5f04ce1eff86 (diff) |
Use X.Y.Z to describe version
Diffstat (limited to 'src')
-rw-r--r-- | src/dotnet/install.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dotnet/install.sh b/src/dotnet/install.sh index 455d679..a302947 100644 --- a/src/dotnet/install.sh +++ b/src/dotnet/install.sh @@ -33,7 +33,7 @@ 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' +# The version must be 'latest', use the form 'X', or use the form 'X.Y.Z' install_version() { local version="$1" local channel="LTS" @@ -41,15 +41,15 @@ install_version() { echo "Installing version '$version'..." - # If version is just a major value (form 'N'), assume it is a channel + # If version is just a major value (form 'X'), assume it is a channel if [[ "$version" =~ ^[0-9]+$ ]]; then channel="$version.0" version="latest" fi - # Make sure the version is formatted correctly (form 'N' is handled before this) + # Make sure the version is formatted correctly (form 'X' is handled before this) if ! [[ "$version" = "latest" || "$version" =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]; then - echo "Invalid version '$version': version must be 'latest' or use the form 'N.M.O'" + echo "Invalid version '$version': version must be 'latest' or use the form 'X.Y.Z'" return 1 fi |