apng2webp: check if commands are available
This commit is contained in:
parent
99d550870e
commit
99928cb421
|
@ -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}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user