updated project 2

This commit is contained in:
Hugh Ratsch
2025-02-09 02:33:45 -06:00
parent 37c1f9c1c9
commit 8988f308c5
5 changed files with 79 additions and 48 deletions
+8 -2
View File
@@ -42,6 +42,7 @@ check_requirements() {
echo -e "${RED}Error: Missing required commands: ${missing_commands[*]}${NC}"
return 1
fi
return 0
}
# Function to clean up previous environment
@@ -65,7 +66,7 @@ setup_environment() {
if ! check_requirements; then
echo -e "${RED}Error: Setup failed - missing requirements${NC}"
return 1
}
fi
# Clean up first
cleanup_environment
@@ -215,6 +216,11 @@ EOF
# Main execution with error handling
main() {
if [[ $# -eq 0 ]]; then
show_help
return 0
fi
case "$1" in
"setup")
setup_environment
@@ -240,7 +246,7 @@ main() {
fi
list_challenges
;;
"help"|"--help"|"-h"|"")
"help"|"--help"|"-h")
show_help
;;
*)