Skip to content

Commit

Permalink
stdout must be true on unix alikes anyways
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcaseb committed Aug 19, 2024
1 parent 4d88480 commit 65a7dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/gh_cli.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This functions tries the gh command in a terminal. If it errors, the gh cli
# isn't available on the machine or at least not on the PATH variable
gh_cli_available <- function(){
gh_test <- try(system2("gh", stderr = TRUE, stdout = FALSE), silent = TRUE)
gh_test <- try(system2("gh", stderr = TRUE, stdout = TRUE), silent = TRUE)

if ( inherits(gh_test, "try-error") ){
cli::cli_abort("The Github Command Line Interface is not available on your machine! \\
Expand Down

0 comments on commit 65a7dd3

Please sign in to comment.