updated project 2
This commit is contained in:
@@ -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
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user