File size: 1,105 Bytes
1c919b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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