Skip to content

Conversation

@jack-pappas
Copy link
Contributor

@jack-pappas jack-pappas commented Feb 15, 2017

There's a bug related to word-splitting in before_install.sh which was introduced in cc33ee4 and affects at least bash on Mac OS X. I've fixed the script so it's quoted to avoid word-splitting while still adhering to POSIX shell language (thanks shellcheck!).

Related to issue #2125.

@jack-pappas
Copy link
Contributor Author

Ok, it seems that while this change has fixed the bug on Mac OS X, it's broken that same line of the script on Ubuntu. I'll try to fix this so it works on both systems.

Also, the certificate check (via certmgr) needs to check both the user and machine
stores to ensure it works on a variety of systems.

Related to dotnet#2125.
@jack-pappas
Copy link
Contributor Author

Figured it out -- when installing mono on Ubuntu (at least through apt-get), the X.509 certificates are installed into the machine-level store; on OS X / macOS they're installed to the user store. certmgr only checks one or the other depending on how the arguments passed, so the script needs to (potentially) call it both ways before failing.

@KevinRansom KevinRansom merged commit 6d55acc into dotnet:master Feb 16, 2017
@KevinRansom
Copy link
Contributor

thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants