From fc5cb03e64037b611b0741236d3023bb1cc481ce Mon Sep 17 00:00:00 2001 From: Jose Perez Rodriguez Date: Tue, 10 Oct 2017 14:54:18 -0700 Subject: Update to 2.0 RTM CLI (#14396) * Update to 2.0 RTM CLI * PR feedback --- init-tools.sh | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'init-tools.sh') diff --git a/init-tools.sh b/init-tools.sh index 1dff622116..f7f5cba790 100755 --- a/init-tools.sh +++ b/init-tools.sh @@ -20,11 +20,14 @@ if [ -z "$__DOTNET_PKG" ]; then echo "Error: build not supported on 32 bit Unix" exit 1 fi + + __PKG_ARCH=x64 + OSName=$(uname -s) case $OSName in Darwin) OS=OSX - __DOTNET_PKG=dotnet-dev-osx-x64 + __PKG_RID=osx ulimit -n 2048 # Format x.y.z as single integer with three digits for each part VERSION=`sw_vers -productVersion| sed -e 's/\./ /g' | xargs printf "%03d%03d%03d"` @@ -35,7 +38,7 @@ if [ -z "$__DOTNET_PKG" ]; then ;; Linux) - __DOTNET_PKG=dotnet-dev-linux-x64 + __PKG_RID=linux OS=Linux if [ -e /etc/os-release ]; then @@ -43,24 +46,26 @@ if [ -z "$__DOTNET_PKG" ]; then if [[ $ID == "alpine" ]]; then # remove the last version digit VERSION_ID=${VERSION_ID%.*} - __DOTNET_PKG=dotnet-dev-alpine.$VERSION_ID-x64 + __PKG_RID=alpine.$VERSION_ID fi elif [ -e /etc/redhat-release ]; then redhatRelease=$(> $__init_tools_log if command -v curl > /dev/null; then -- cgit v1.2.3