Skip to content

Commit

Permalink
truststore_linux: remove PATH check for SystemTrustCommand
Browse files Browse the repository at this point in the history
It's hard to predict what the PATH that sudo will use, and there
shouldn't be many cases where we don't find the command anyway.

Fixes #188
  • Loading branch information
FiloSottile committed Aug 16, 2019
1 parent 8ff7350 commit 343aec2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions truststore_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ func init() {
SystemTrustFilename = "/usr/share/pki/trust/anchors/%s.pem"
SystemTrustCommand = []string{"update-ca-certificates"}
}
if SystemTrustCommand != nil && !binaryExists(SystemTrustCommand[0]) {
SystemTrustCommand = nil
}
}

func (m *mkcert) systemTrustFilename() string {
Expand Down

0 comments on commit 343aec2

Please sign in to comment.