From 2b64508a1ab9f454741b24d504228db8cc0374f1 Mon Sep 17 00:00:00 2001 From: JP Ungaretti Date: Fri, 3 Mar 2023 00:37:53 +0000 Subject: Add route for LTS option --- src/dotnet/install.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/dotnet/install.sh') diff --git a/src/dotnet/install.sh b/src/dotnet/install.sh index a302947..e21d3f9 100644 --- a/src/dotnet/install.sh +++ b/src/dotnet/install.sh @@ -36,7 +36,7 @@ check_packages() { # The version must be 'latest', use the form 'X', or use the form 'X.Y.Z' install_version() { local version="$1" - local channel="LTS" + local channel="STS" local runtime_arg="" echo "Installing version '$version'..." @@ -47,6 +47,12 @@ install_version() { version="latest" fi + # If version is 'lts', then update the channel + if [ "$version" = "lts" ]; then + channel="LTS" + version="latest" + fi + # 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 'X.Y.Z'" -- cgit v1.2.3