Added check for availabilit of ffplay.

This commit is contained in:
Joe 2018-06-03 15:45:58 +02:00
parent 8887bee900
commit b7bb57d0cc
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,13 @@ if [ -z ${HOME+x} ] && ! [ -z ${USERPROFILE+x} ]; then HOME="$USERPROFILE"; fi
authcodeDirs="${HOME}/ ./" authcodeDirs="${HOME}/ ./"
GREP=$(grep --version | grep -q GNU && echo "grep" || echo "ggrep") GREP=$(grep --version | grep -q GNU && echo "grep" || echo "ggrep")
if ! [ -x "$(command -v ffplay)" ]
then
echo "Please make sure that ffplay is installed and in your PATH."
echo "This is usually installed as a part of the ffmpeg package."
exit 1
fi
if ! [[ $(type -P "$GREP") ]]; then if ! [[ $(type -P "$GREP") ]]; then
echo "$GREP (GNU grep) is not in your PATH" echo "$GREP (GNU grep) is not in your PATH"
echo "Without it, this script will break." echo "Without it, this script will break."

View File

@ -20,6 +20,7 @@ can obtain this string from a tool like [audible-activator](https://github.com/i
## Requirements ## Requirements
* bash 4.3.42 or later tested * bash 4.3.42 or later tested
* ffmpeg version 2.8.3 or later * ffmpeg version 2.8.3 or later
* ffplay (usually installed as a part of ffmpeg)
* libmp3lame (came from lame package on Arch, not sure where else this is stored) * libmp3lame (came from lame package on Arch, not sure where else this is stored)
## OSX ## OSX