From 031136b8c70771c8713d1d09a71a661e594a1dd3 Mon Sep 17 00:00:00 2001 From: Kazuhiro MUSASHI Date: Sat, 20 Aug 2022 15:11:46 +0900 Subject: [PATCH] Add `-t` option to `find` command: ``` --- a/.drone.yml +++ b/.drone.yml @@ -12,7 +12,7 @@ steps: - name: generate-ogp-images image: reg.kazu634.com/kazu634/tcardgen:v0.3 commands: - - find /var/tmp/ -type f -name *.ttf | xargs -I% -n 1 cp -p % assets/font/ + - find /var/tmp/ -type f -name *.ttf | xargs -t -I% -n 1 cp -p % assets/font/ - find content/ -type f -name '*.md' | grep -v '_index' | xargs -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml > /dev/null - find static/ogp/ -type f -name '*.png' | xargs -n 1 -I% basename % .png | xargs -I% -n 1 img2webp -lossy -q 50 static/ogp/%.png -o static/ogp/%.webp > /dev/null - find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm ``` --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4f1c82d..8a3e955 100644 --- a/.drone.yml +++ b/.drone.yml @@ -12,8 +12,8 @@ steps: - name: generate-ogp-images image: reg.kazu634.com/kazu634/tcardgen:v0.3 commands: - - find /var/tmp/ -type f -name *.ttf | xargs -I% -n 1 cp -p % assets/font/ - - find content/ -type f -name '*.md' | grep -v '_index' | xargs -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml > /dev/null + - find /var/tmp/ -type f -name *.ttf | xargs -t -I% -n 1 cp -p % assets/font/ + - find content/ -type f -name '*.md' | grep -v '_index' | xargs -t -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml > /dev/null - find static/ogp/ -type f -name '*.png' | xargs -n 1 -I% basename % .png | xargs -I% -n 1 img2webp -lossy -q 50 static/ogp/%.png -o static/ogp/%.webp > /dev/null - find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm