We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd3736d commit 951cc86Copy full SHA for 951cc86
cmd/frcli/utils.go
@@ -159,12 +159,23 @@ func extractPathArgs(ctx *cli.Context) (string, string, error) {
159
if faradayDir != faraday.FaradayDirBase ||
160
networkStr != faraday.DefaultNetwork {
161
162
- tlsCertPath = filepath.Join(
163
- faradayDir, networkStr, faraday.DefaultTLSCertFilename,
164
- )
165
- macPath = filepath.Join(
166
- faradayDir, networkStr, faraday.DefaultMacaroonFilename,
167
+ // Only overwrite the tls cert path if the user has not
+ // explicitly defined it.
+ if !ctx.GlobalIsSet(tlsCertFlag.Name) {
+ tlsCertPath = filepath.Join(
+ faradayDir, networkStr,
+ faraday.DefaultTLSCertFilename,
168
+ )
169
+ }
170
+
171
+ // Only overwrite the macaroon path if the user has not
172
173
+ if !ctx.GlobalIsSet(macaroonPathFlag.Name) {
174
+ macPath = filepath.Join(
175
176
+ faraday.DefaultMacaroonFilename,
177
178
179
}
180
181
return tlsCertPath, macPath, nil
0 commit comments