apng2webp: check if commands are available

This commit is contained in:
tastytea 2022-05-04 16:07:31 +02:00
parent 99d550870e
commit 99928cb421
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -17,6 +17,11 @@ fi
local input=$(realpath ${1}) local input=$(realpath ${1})
local output=$(realpath ${2}) 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') local tmpdir=$(mktemp --directory --suffix='.apng2webp')
pushd ${tmpdir} pushd ${tmpdir}