fix(aliases): fix webp function
This commit is contained in:
parent
fd698cf4cd
commit
49f141e750
@ -38,9 +38,9 @@ alias dclean="docker system prune -af"
|
|||||||
# webp BEGIN
|
# webp BEGIN
|
||||||
function to_webp() {
|
function to_webp() {
|
||||||
setopt NULL_GLOB
|
setopt NULL_GLOB
|
||||||
for type in jpg png; do
|
for type in jpg jpeg png; do
|
||||||
for F in *.$type; do
|
for F in *.$type; do
|
||||||
cwebp "$F" -o "`basename "$\{F%.$type}"`.webp"
|
cwebp "$F" -o "`basename "${F%.$type}"`.webp"
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
unsetopt NULL_GLOB
|
unsetopt NULL_GLOB
|
||||||
|
Loading…
Reference in New Issue
Block a user