diff --git a/projects/02-command-line-mastery/play.sh b/projects/02-command-line-mastery/play.sh index 81f2b25..1614607 100644 --- a/projects/02-command-line-mastery/play.sh +++ b/projects/02-command-line-mastery/play.sh @@ -251,7 +251,8 @@ print_challenge_header() { # Function to setup challenge environment setup_challenge_env() { local challenge_id=$1 - if ! bash "$CHALLENGE_DIR/.tracking/level1-setup.sh" > /dev/null 2>&1; then + echo -e "${BLUE}Setting up challenge files...${NC}" + if ! bash "$CHALLENGE_DIR/.tracking/level1-setup.sh"; then echo -e "${RED}Error: Failed to setup challenge environment${NC}" echo -e "${YELLOW}Try running: $0 clean && $0 setup${NC}" return 1 @@ -295,8 +296,9 @@ start_challenge() { # Setup challenge environment echo -e "${BLUE}Setting up challenge environment...${NC}" - setup_challenge_env "$challenge_id" & - show_spinner $! + if ! setup_challenge_env "$challenge_id"; then + return 1 + fi if ! get_challenge_details "$challenge_id" 2>/dev/null; then echo -e "${RED}Error: Challenge $challenge_id not found${NC}"