Skip to content

Commit

Permalink
Refactor spin script to skip compose check for certain commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydrogers committed Dec 16, 2023
1 parent 2ace274 commit 7e6ea13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/spin
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,12 @@ main() {
fi

case "$1" in
"" | debug | help | init | kill | new | prune | update | version)
"" | debug | help | update | version)
: # Silent output for the user, but we're skipping the compose check too.
;;
init | kill | new | prune)
check_if_docker_is_running
;;
*)
check_if_docker_is_running
check_if_compose_files_exist "$COMPOSE_FILE"
Expand Down

0 comments on commit 7e6ea13

Please sign in to comment.