Allow alpine to run init-tools.sh
authorEric Mellino <erme@microsoft.com>
Mon, 17 Oct 2016 19:51:20 +0000 (19:51 +0000)
committerEric Mellino <erme@microsoft.com>
Mon, 17 Oct 2016 19:51:20 +0000 (19:51 +0000)
Commit migrated from https://github.com/dotnet/coreclr/commit/a4675766d9dd85ab23e7865bc25d650c9dc66019

src/coreclr/init-tools.sh

index e842c9d..7de28f7 100755 (executable)
@@ -48,6 +48,9 @@ get_current_linux_name() {
     elif [ "$(cat /etc/*-release | grep -cim1 debian)" -eq 1 ]; then
         echo "debian"
         return 0
+    elif [ "$(cat /etc/*-release | grep -cim1 alpine)" -eq 1 ]; then
+        echo "alpine"
+        return 0
     elif [ "$(cat /etc/*-release | grep -cim1 fedora)" -eq 1 ]; then
         if [ "$(cat /etc/*-release | grep -cim1 23)" -eq 1 ]; then
             echo "fedora.23"