scripts/pngtowebp: fail-fast on errors
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
5fc391e89f
commit
217c72caf5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue