Updating init-tools to be inline with the CoreFX copy
authorTanner Gooding <tagoo@outlook.com>
Thu, 9 Aug 2018 15:02:43 +0000 (08:02 -0700)
committerTanner Gooding <tagoo@outlook.com>
Thu, 9 Aug 2018 18:50:00 +0000 (11:50 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/ce175cbb849378c2ef1985ff3994cd0d82f3d8fe

src/coreclr/init-tools.sh

index 2adec1a..f9c0054 100755 (executable)
@@ -102,6 +102,12 @@ if [ ! -e "$__DOTNET_PATH" ]; then
                         __PKG_RID=rhel.6
                     fi
                 fi
+                OSArch=$(uname -m)
+                if [ $OSArch == 'armv7l' ];then
+                    __PKG_ARCH=arm
+                elif [ $OSArch == 'aarch64' ]; then
+                    __PKG_ARCH=arm64
+                fi
 
                 ;;