aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJP Ungaretti <git@jungaretti.com>2023-03-01 10:07:28 +0300
committerJP Ungaretti <git@jungaretti.com>2023-03-01 10:07:28 +0300
commitd432ed1d6d7be4d45f6f9f5327118103075ad3ca (patch)
tree47ba8bb846f991d191ce05e7320f4bf1d2f905dc
parent6b84b694ada71cdc5bd02ec874816ec4b3e9d2c2 (diff)
Fix quoting bug
-rw-r--r--src/dotnet/install.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dotnet/install.sh b/src/dotnet/install.sh
index 3e9093d..4d14a90 100644
--- a/src/dotnet/install.sh
+++ b/src/dotnet/install.sh
@@ -7,9 +7,9 @@
# Docs: https://github.com/devcontainers/features/tree/main/src/dotnet
# Maintainer: The VS Code and Codespaces Teams
-DOTNET_VERSION="${VERSION:-'latest'}"
-DOTNET_ADDITIONAL_VERSIONS="${ADDITIONALVERSIONS:-''}"
-DOTNET_RUNTIME_ONLY="${RUNTIMEONLY:-'false'}"
+DOTNET_VERSION="${VERSION:-"latest"}"
+DOTNET_ADDITIONAL_VERSIONS="${ADDITIONALVERSIONS:-""}"
+DOTNET_RUNTIME_ONLY="${RUNTIMEONLY:-"false"}"
DOTNET_INSTALL_SCRIPT_URL='https://dot.net/v1/dotnet-install.sh'
DOTNET_INSTALL_SCRIPT='/tmp/dotnet-install.sh'
@@ -44,11 +44,11 @@ install_version() {
# If version is just a major value (form 'N'), assume it is a channel
if [[ "$version" =~ ^[0-9]+$ ]]; then
channel="$version.0"
- version='latest'
+ version="latest"
fi
# Make sure the version is formatted correctly (form 'N' is handled before this)
- if ! [[ "$version" = 'latest' || "$version" =~ ^[0-9]+.[0-9]+.[0-9]+$ ]]; then
+ 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'"
return 1
fi