Skip to content

Commit

Permalink
Should stop execution if it can't find .inst/apps
Browse files Browse the repository at this point in the history
  • Loading branch information
karangattu committed Oct 24, 2023
1 parent 3dd13fe commit 7ededc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/fix_snaps.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ fix_snaps <- function(
# validate_core_pkgs()

apps_folder <- file.path(repo_dir, "inst", "apps")
if (!dir.exists(apps_folder)) {
stop("Error: ", apps_folder, " does not exist")
}

verify_if_not_main_branch(ask_if_not_main, repo_dir = repo_dir)
verify_no_git_changes(repo_dir = repo_dir, apps_folder = apps_folder)
Expand Down

0 comments on commit 7ededc2

Please sign in to comment.