updated project 2

This commit is contained in:
Hugh Ratsch
2025-02-09 03:31:44 -06:00
parent 43e9e28908
commit 872ddd766b
+5 -3
View File
@@ -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}"