Rename to runtime_args
This commit is contained in:
parent
f7fa5fc302
commit
1a655bfa0d
1 changed files with 3 additions and 3 deletions
|
@ -37,7 +37,7 @@ check_packages() {
|
||||||
install_version() {
|
install_version() {
|
||||||
local version="$1"
|
local version="$1"
|
||||||
local channel="LTS"
|
local channel="LTS"
|
||||||
local runtimeArg=""
|
local runtime_arg=""
|
||||||
|
|
||||||
# If version is just a major value (form 'N'), assume it is a channel
|
# If version is just a major value (form 'N'), assume it is a channel
|
||||||
if [[ "$version" =~ ^[0-9]+$ ]]; then
|
if [[ "$version" =~ ^[0-9]+$ ]]; then
|
||||||
|
@ -52,14 +52,14 @@ install_version() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$DOTNET_RUNTIME_ONLY" = 'true' ]; then
|
if [ "$DOTNET_RUNTIME_ONLY" = 'true' ]; then
|
||||||
runtimeArg = '--runtime dotnet'
|
runtime_arg = '--runtime dotnet'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"$DOTNET_INSTALL_SCRIPT" \
|
"$DOTNET_INSTALL_SCRIPT" \
|
||||||
--install-dir "$DOTNET_INSTALL_DIR" \
|
--install-dir "$DOTNET_INSTALL_DIR" \
|
||||||
--version "$version" \
|
--version "$version" \
|
||||||
--channel "$channel" \
|
--channel "$channel" \
|
||||||
$runtimeArg
|
$runtime_arg
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$(id -u)" -ne 0 ]; then
|
if [ "$(id -u)" -ne 0 ]; then
|
||||||
|
|
Loading…
Reference in a new issue