diff --git a/.config/zsh/functions/apng2webp b/.config/zsh/functions/apng2webp index 98ab526..e1eb104 100755 --- a/.config/zsh/functions/apng2webp +++ b/.config/zsh/functions/apng2webp @@ -17,6 +17,11 @@ fi local input=$(realpath ${1}) local output=$(realpath ${2}) +autoload die +for cmd in apngdis cwebp webpmux; do + type ${cmd} >& - || die "ERROR: ${cmd} not found" +done + local tmpdir=$(mktemp --directory --suffix='.apng2webp') pushd ${tmpdir}