diff --git a/workload/scripts/workload-install.ps1 b/workload/scripts/workload-install.ps1 index 0780bf4..46a206c 100644 --- a/workload/scripts/workload-install.ps1 +++ b/workload/scripts/workload-install.ps1 @@ -85,7 +85,7 @@ function Get-LatestVersion([string]$Id) { { try { - $Response = Invoke-WebRequest -Uri https://api.nuget.org/v3-flatcontainer/$Id/index.json -UseBasicParsing | ConvertFrom-Json + $Response = Invoke-WebRequest -Uri https://api.nuget.org/v3-flatcontainer/$($Id.ToLowerInvariant())/index.json -UseBasicParsing | ConvertFrom-Json return $Response.versions | Select-Object -Last 1 } catch { diff --git a/workload/scripts/workload-install.sh b/workload/scripts/workload-install.sh index 36e304c..9cbc44b 100755 --- a/workload/scripts/workload-install.sh +++ b/workload/scripts/workload-install.sh @@ -187,7 +187,7 @@ function install_tizenworkload() { # Check latest version of manifest. if [[ "$MANIFEST_VERSION" == "" ]]; then - MANIFEST_VERSION=$(curl -s https://api.nuget.org/v3-flatcontainer/$MANIFEST_NAME/index.json | grep \" | tail -n 1 | tr -d '\r' | xargs) + MANIFEST_VERSION=$(curl -s https://api.nuget.org/v3-flatcontainer/${MANIFEST_NAME,,}/index.json | grep \" | tail -n 1 | tr -d '\r' | xargs) if [ -n "$MANIFEST_VERSION" ] && echo "$MANIFEST_VERSION" | grep -q "BlobNotFound"; then MANIFEST_VERSION=$(getLatestVersion "$MANIFEST_NAME") if [[ -n $MANIFEST_VERSION ]]; then