Skip to content

Commit 768bbf0

Browse files
committed
Add validation check for install_param prefix before log extraction
1 parent 57a8a17 commit 768bbf0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

R/BiocCheck.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,12 @@ BiocCheckRun <-
198198
} else {
199199
if (is.character(install_param)) {
200200
split_log <- strsplit(install_param, ":")[[1L]]
201+
stopifnot(
202+
identical(
203+
"check",
204+
utils::head(split_log, n = 1L)
205+
)
206+
)
201207
inst_log <- utils::tail(split_log, n = 1L)
202208
on.exit({
203209
if (file.exists(inst_log))

0 commit comments

Comments
 (0)