From 49f141e750baaa893fcac5c07b8da45eb2555d45 Mon Sep 17 00:00:00 2001 From: spy4x <2spy4x@gmail.com> Date: Sun, 17 Mar 2024 00:20:28 +0800 Subject: [PATCH] fix(aliases): fix webp function --- aliases.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aliases.sh b/aliases.sh index 07428fd..ef07b80 100644 --- a/aliases.sh +++ b/aliases.sh @@ -38,9 +38,9 @@ alias dclean="docker system prune -af" # webp BEGIN function to_webp() { setopt NULL_GLOB - for type in jpg png; do + for type in jpg jpeg png; do for F in *.$type; do - cwebp "$F" -o "`basename "$\{F%.$type}"`.webp" + cwebp "$F" -o "`basename "${F%.$type}"`.webp" done done unsetopt NULL_GLOB