Add a couple of comments
This commit is contained in:
parent
6b54ebde57
commit
26ba3fb9b7
1 changed files with 2 additions and 0 deletions
|
@ -32,6 +32,7 @@ check_packages() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Installs a version of .NET using the DOTNET_INSTALLER_SCRIPT
|
||||||
install_version() {
|
install_version() {
|
||||||
local version="$1"
|
local version="$1"
|
||||||
local channel="LTS"
|
local channel="LTS"
|
||||||
|
@ -43,6 +44,7 @@ install_version() {
|
||||||
version='latest'
|
version='latest'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Make sure the version is formatted correctly
|
||||||
if ! [[ "$version" = 'latest' || "$version" =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]; then
|
if ! [[ "$version" = 'latest' || "$version" =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]; then
|
||||||
echo "version must be 'latest' or use the form 'N.M.O'"
|
echo "version must be 'latest' or use the form 'N.M.O'"
|
||||||
return 1
|
return 1
|
||||||
|
|
Loading…
Reference in a new issue