Skip to content

Commit

Permalink
refactor: move preload actions to run script
Browse files Browse the repository at this point in the history
  • Loading branch information
nallenscott committed Jun 11, 2023
1 parent 368d8ad commit 181d308
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/brew-hops
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ sync() {
# Runs the hops init or sync subcommand.
# -----------------------------------------------
run_subcmd() {
if [ -n "$1" ]; then
install_deps
load_backend
fi

case "$1" in
init)
init
Expand All @@ -415,8 +420,6 @@ run_subcmd() {
esac
}

install_deps
load_backend
parse_args "$@"
run_subcmd "$1"
print_debug

0 comments on commit 181d308

Please sign in to comment.