Skip to content

Commit

Permalink
Update utils.R
Browse files Browse the repository at this point in the history
  • Loading branch information
jgbradley1 authored Aug 24, 2020
1 parent 402849d commit 1f253a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ configure_mypki <- function(pki_file = NULL, ca_file = NULL, password = NULL, ov
}

# is pki_file defined?
if (is.null(pki_file) && !is.null(getOption("rpki_pki_file"))) {
if (is.null(pki_file) && !is.null(getOption("rpki_pki_file")) && file.exists(getOption("rpki_pki_file"))) {
pki_file <- getOption("rpki_pki_file")
}
if (is.null(pki_file)) {
Expand All @@ -124,7 +124,7 @@ configure_mypki <- function(pki_file = NULL, ca_file = NULL, password = NULL, ov
pki_file <- normalizePath(pki_file)

# is ca_file defined?
if (is.null(ca_file) && !is.null(getOption("rpki_ca_file"))) {
if (is.null(ca_file) && !is.null(getOption("rpki_ca_file")) && file.exists(getOption("rpki_ca_file"))) {
ca_file <- getOption("rpki_ca_file")
}
if (is.null(ca_file)) {
Expand Down

0 comments on commit 1f253a4

Please sign in to comment.