1
0
Fork 0

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
1 changed files with 5 additions and 0 deletions

View File

@ -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}