add utilities
This commit is contained in:
@@ -22,6 +22,9 @@ find "$SOURCE_ROOT" -type f \( -name "*.zip" -o -name "*.7z" -o -name "*.rar" \)
|
||||
# Create a temp directory for extraction
|
||||
temp_dir=$(mktemp -d)
|
||||
|
||||
echo "Extracted to: $temp_dir"
|
||||
tree "$temp_dir" # DEBUG
|
||||
|
||||
# Extract contents
|
||||
7z x "$archive" -o"$temp_dir" -y > /dev/null
|
||||
|
||||
@@ -35,7 +38,7 @@ find "$SOURCE_ROOT" -type f \( -name "*.zip" -o -name "*.7z" -o -name "*.rar" \)
|
||||
-not -path "./data.acd" \
|
||||
-not -path "./physics/standard/data.acd" \
|
||||
-not -path "./physics/csp/data.acd" \
|
||||
-delete;
|
||||
-delete
|
||||
|
||||
echo "After filtering:"
|
||||
tree "$temp_dir/$car_name"
|
||||
|
||||
Reference in New Issue
Block a user