add utilities
This commit is contained in:
@@ -22,12 +22,12 @@ find "$SOURCE_ROOT" -type f \( -name "*.zip" -o -name "*.7z" -o -name "*.rar" \)
|
||||
# Create a temp directory for extraction
|
||||
temp_dir=$(mktemp -d)
|
||||
|
||||
# Extract contents
|
||||
7z x "$archive" -o"$temp_dir" -y # > /dev/null
|
||||
|
||||
echo "Extracted to: $temp_dir"
|
||||
tree "$temp_dir" # DEBUG
|
||||
|
||||
# Extract contents
|
||||
7z x "$archive" -o"$temp_dir" -y > /dev/null
|
||||
|
||||
# FILTERING LOGIC
|
||||
find "$temp_dir/$car_name" -not -path "./skins/*/livery.png" \
|
||||
-not -path "./skins/*/preview.jpg" \
|
||||
|
||||
Reference in New Issue
Block a user