Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d55acc

Browse files
jack-pappasKevinRansom
authored andcommitted
Fix word-splitting bug in before_install.sh. (dotnet#2437)
Also, the certificate check (via certmgr) needs to check both the user and machinestores to ensure it works on a variety of systems.Related todotnet#2125.
1 parentbc7af5a commit6d55acc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎before_install.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ fi
2828

2929
# Check if SSL certificates have been imported into Mono's certificate store.
3030
# If certs haven't been installed, some/all of the Nuget packages will fail to restore.
31-
if [$('certmgr -list -c Trust | grep -c -F "X.509"')-le 1 ];then
31+
# Note, the result of the certmgr and grep commands returns the number of installed X.509 certificates.
32+
# We need to run the command twice -- on some systems (e.g. macOS) the certs are installed in the user store,
33+
# and on other systems (e.g., Ubuntu) they're installed to the machine store. certmgr only shows what's in
34+
# 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
3236
echo"No SSL certificates installed so unable to restore NuGet packages.">&2;
3337
echo"Run 'mozroots --sync --import' to install certificates to Mono's certificate store.">&2;
3438
exit 1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp