Skip to content

Commit

Permalink
fix missing pkgs.mkShell when shell_hook = NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Baumann committed Oct 6, 2023
1 parent 15d82ad commit d853744
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/find_rev.R
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,9 @@ flag_rpkgs

flag_rstudio <- if (ide == "rstudio") "rstudio_pkgs" else ""

shell_hook <- if (!is.null(shell_hook)) {
shell_hook <- if (!is.null(shell_hook) && nzchar(shell_hook)) {
paste0('shellHook = "', shell_hook, '";')
}
} else {''}

# Generate the shell
generate_shell <- function(flag_git_archive,
Expand Down
4 changes: 2 additions & 2 deletions dev/build_envs.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,9 @@ flag_rpkgs
flag_rstudio <- if (ide == "rstudio") "rstudio_pkgs" else ""
shell_hook <- if (!is.null(shell_hook)) {
shell_hook <- if (!is.null(shell_hook) && nzchar(shell_hook)) {
paste0('shellHook = "', shell_hook, '";')
}
} else {''}
# Generate the shell
generate_shell <- function(flag_git_archive,
Expand Down

0 comments on commit d853744

Please sign in to comment.