Skip to content

Commit 5335430

Browse files
committed
Try not using pipe.
1 parent d131716 commit 5335430

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/optimize.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ jobs:
2020
- name: Optimize still images
2121
run: >
2222
find pages/ \( -iname "*.png" -o -iname "*.jpg" -o -iname "*.jpeg" \)
23-
| parallel 'cwebp -q 80 {= $_=Q($_) =} -o {= $_=Q($_); s/\.[^.]+$// =}.webp && rm {= $_=Q($_) =}'
23+
-exec parallel 'cwebp -q 80 {} -o {.}.webp && rm {}' ::: {} +
2424
2525
- name: Optimize gif images
2626
run: >
2727
find pages/ -iname "*.gif"
28-
| parallel 'gif2webp -q 80 {= $_=Q($_) =} -o {= $_=Q($_); s/\.[^.]+$// =}.webp && rm {= $_=Q($_) =}'
28+
-exec parallel 'gif2webp -q 80 {} -o {.}.webp && rm {}' ::: {} +
2929
3030
- name: Optimize text
3131
run: |

0 commit comments

Comments
 (0)