Work around OSX native dependency install issue (dotnet/coreclr#21913)
authorSven Boemer <sbomer@gmail.com>
Thu, 10 Jan 2019 16:37:11 +0000 (08:37 -0800)
committerGitHub <noreply@github.com>
Thu, 10 Jan 2019 16:37:11 +0000 (08:37 -0800)
"brew update" before "brew install"
To work around https://github.com/dotnet/coreclr/issues/21910

Commit migrated from https://github.com/dotnet/coreclr/commit/e6504ac402a65283e2083ec8d28e8c90a743bd1a

eng/install-native-dependencies.sh

index 9e80c57..4b3eda7 100644 (file)
@@ -10,12 +10,16 @@ if [ "$1" = "Linux" ]; then
         exit 1;
     fi
 elif [ "$1" = "OSX" ]; then
+    brew update
+    if [ "$?" != "0" ]; then
+        exit 1;
+    fi
     brew install icu4c openssl
     if [ "$?" != "0" ]; then
         exit 1;
     fi
     brew link --force icu4c
-    if [ "$?" != "0"]; then
+    if [ "$?" != "0" ]; then
         exit 1;
     fi
 else