Skip to content

Commit dd0e119

Browse files
committed
fix build.sh for OSX and a little cleanup
1 parent f9893b6 commit dd0e119

File tree

7 files changed

+90
-301
lines changed

7 files changed

+90
-301
lines changed

before_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fi
3232
# We need to run the command twice -- on some systems (e.g. macOS) the certs are installed in the user store,
3333
# and on other systems (e.g., Ubuntu) they're installed to the machine store. certmgr only shows what's in
3434
# the selected store, which is why we need to check both.
35-
if [ "$(certmgr -list -c Trust | grep -c -F "X.509")" -le 1 ] && [ "$(certmgr -list -c -m Trust | grep -c -F "X.509")" -le 1 ]; then
35+
if [ $OS = 'Linux' ] && [ "$(certmgr -list -c Trust | grep -c -F "X.509")" -le 1 ] && [ "$(certmgr -list -c -m Trust | grep -c -F "X.509")" -le 1 ]; then
3636
echo "No SSL certificates installed so unable to restore NuGet packages." >&2;
3737
echo "Run 'mozroots --sync --import' to install certificates to Mono's certificate store." >&2;
3838
exit 1

0 commit comments

Comments
 (0)