Pass RID to crossgen (dotnet/core-setup#4290)
authorAdeel Mujahid <adeelbm@outlook.com>
Sat, 23 Jun 2018 02:40:13 +0000 (05:40 +0300)
committerJan Kotas <jkotas@microsoft.com>
Sat, 23 Jun 2018 02:40:13 +0000 (19:40 -0700)
Commit migrated from https://github.com/dotnet/core-setup/commit/764bedf7487496fe1ffac349cf63324760e8cd4e

src/installer/init-tools.sh

index 55a24e7..2c86e36 100755 (executable)
@@ -110,7 +110,8 @@ if [ ! -e $__DOTNET_PATH ]; then
                 __PKG_RID=linux
                 ;;
       esac
-    __DOTNET_PKG=dotnet-sdk-${__DOTNET_TOOLS_VERSION}-$__PKG_RID-$__PKG_ARCH
+    __PKG_RID=$__PKG_RID-$__PKG_ARCH
+    __DOTNET_PKG=dotnet-sdk-${__DOTNET_TOOLS_VERSION}-$__PKG_RID
     fi
     mkdir -p "$__DOTNET_PATH"
 
@@ -166,7 +167,7 @@ echo "Making all .sh files executable under Tools."
 ls $__scriptpath/Tools/*.sh | xargs chmod +x
 ls $__scriptpath/Tools/scripts/docker/*.sh | xargs chmod +x
 
-Tools/crossgen.sh $__scriptpath/Tools
+Tools/crossgen.sh $__scriptpath/Tools $__PKG_RID
 
 mkdir -p "$(dirname "$__BUILD_TOOLS_SEMAPHORE")" && touch $__BUILD_TOOLS_SEMAPHORE