TARGET_DIR="ZeroEval-main" rm -r $TARGET_DIR # Download the ZIP file curl -L -o zeroeval.zip https://github.com/yuchenlin/ZeroEval/archive/refs/heads/main.zip unzip zeroeval.zip rm zeroeval.zip #!/bin/bash # Define the target directory and the exception folder EXCEPTION_FOLDER="result_dirs" # Ensure the target directory exists if [ -d "$TARGET_DIR" ]; then # Loop through each item in the target directory for item in "$TARGET_DIR"/*; do # Check if it is not the exception folder if [ "$(basename "$item")" != "$EXCEPTION_FOLDER" ]; then # Remove the item (file or directory) rm -rf "$item" echo "Removed: $item" fi done else echo "Target directory does not exist: $TARGET_DIR" fi # only keep the result_dirs/zebra-grid under result_dirs folder; remove all other sub-folders under result_dirs # Remove all subdirectories in result_dirs except zebra-grid find "$TARGET_DIR/result_dirs" -maxdepth 1 -type d ! -name 'zebra-grid' ! -name 'result_dirs' -exec rm -rf {} + rm -rf $TARGET_DIR/.github rm -rf $TARGET_DIR/.gitignore # tables # bash update_table.sh