Add `-f` flag to `rm` command.

This commit is contained in:
Kazuhiro MUSASHI 2020-01-19 12:43:44 +08:00
parent 913f3aaecf
commit f398b0d398
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ steps:
image: cibuilds/hugo:0.62.1 image: cibuilds/hugo:0.62.1
commands: commands:
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do gzip -c ${TARGET} > ${TARGET}.gz; done - for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do gzip -c ${TARGET} > ${TARGET}.gz; done
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do rm ${TARGET}; done - for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do rm -f ${TARGET}; done
- name: scp - name: scp
image: appleboy/drone-scp image: appleboy/drone-scp