Skip to content

Commit e74c75a

Browse files
workflow
1 parent ec05e82 commit e74c75a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/rename.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ echo "=== Processing icon references with regex ==="
3030
# Process all CSS files in bundles directory
3131
if [ -d "$BASE_DIR/bundles" ]; then
3232
find "$BASE_DIR/bundles" -type f -name "*.css" | while read -r file; do
33-
if grep -q "/icons/" "$file" 2>/dev/null; then
33+
if grep -q "icons/" "$file" 2>/dev/null; then
3434
echo "Processing: $file"
35-
# Replace /icons/[anything].svg with /ui-icons/[anything].svg
35+
# Replace both /icons/ and ../../icons/ patterns with /ui-icons/ and ../../ui-icons/
3636
sed -i 's|/icons/\([^"'\''[:space:]]*\.svg\)|/ui-icons/\1|g' "$file"
37+
sed -i 's|\.\./\.\./icons/\([^"'\''[:space:]]*\.svg\)|../../ui-icons/\1|g' "$file"
3738
fi
3839
done
3940
fi

0 commit comments

Comments
 (0)