Omit `-t` option.

This commit is contained in:
Kazuhiro MUSASHI 2020-05-01 00:56:32 +09:00
parent 30310d143a
commit ecea27cf51
1 changed files with 2 additions and 4 deletions

View File

@ -17,8 +17,7 @@ steps:
- name: Compress-the-Assets - name: Compress-the-Assets
image: alpine:3.9 image: alpine:3.9
commands: commands:
- find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$" | xargs -n 1 -i% -P 0 -t sh -c 'cp % %.bk && gzip % && mv %.bk %' - find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %'
- find public/ -type f | egrep "\.(html|HTML)$" | xargs -n 1 -i% -P 0 -t sh -c 'cp % %.bk && gzip % && mv %.bk %'
- name: housekeep - name: housekeep
image: appleboy/drone-ssh image: appleboy/drone-ssh
@ -71,8 +70,7 @@ steps:
- name: Compress-the-Assets - name: Compress-the-Assets
image: alpine:3.9 image: alpine:3.9
commands: commands:
- find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$" | xargs -n 1 -i% -P 0 -t sh -c 'cp % %.bk && gzip % && mv %.bk %' - find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %'
- find public/ -type f | egrep "\.(html|HTML)$" | xargs -n 1 -i% -P 0 -t sh -c 'cp % %.bk && gzip % && mv %.bk %'
- name: housekeep - name: housekeep
image: appleboy/drone-ssh image: appleboy/drone-ssh