diff --git a/cmd/brew-hops b/cmd/brew-hops index 3c6fa21..85075e8 100755 --- a/cmd/brew-hops +++ b/cmd/brew-hops @@ -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 @@ -415,8 +420,6 @@ run_subcmd() { esac } -install_deps -load_backend parse_args "$@" run_subcmd "$1" print_debug