scripts/pngtowebp: fail-fast on errors

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2021-01-03 11:04:36 +05:30
parent 5fc391e89f
commit 217c72caf5
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash
set -euxo pipefail
fd -tf png$ static/uploads -x convert {} -quality 100 -define webp:lossless=true {.}.webp
fd -tf png$ static/uploads -X rm -v