✏️ Adjusted output name of resized file

This commit is contained in:
z3rOR0ne 2022-11-15 21:04:21 -08:00
parent 150d565227
commit 4555a2f186

View file

@ -11,4 +11,5 @@ if ! command -v gifsicle &> /dev/null ; then
exit 1
fi
gifsicle "$1" --resize "$2x$3" > "$1_resized.gif"
filename=$(echo "${1}" | awk -F. '{ print $1 }')
gifsicle "$1" --resize "$2x$3" > "${filename}_resized.gif"