From d432ed1d6d7be4d45f6f9f5327118103075ad3ca Mon Sep 17 00:00:00 2001 From: JP Ungaretti Date: Wed, 1 Mar 2023 07:07:28 +0000 Subject: [PATCH] Fix quoting bug --- src/dotnet/install.sh | 10 +++++----- 1 file 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