mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 11:18:57 +01:00
Added check for availabilit of ffplay.
This commit is contained in:
parent
8887bee900
commit
b7bb57d0cc
7
AAXtoMP3
7
AAXtoMP3
@ -10,6 +10,13 @@ if [ -z ${HOME+x} ] && ! [ -z ${USERPROFILE+x} ]; then HOME="$USERPROFILE"; fi
|
||||
authcodeDirs="${HOME}/ ./"
|
||||
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
|
||||
echo "$GREP (GNU grep) is not in your PATH"
|
||||
echo "Without it, this script will break."
|
||||
|
@ -20,6 +20,7 @@ can obtain this string from a tool like [audible-activator](https://github.com/i
|
||||
## Requirements
|
||||
* bash 4.3.42 or later tested
|
||||
* 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)
|
||||
|
||||
## OSX
|
||||
|
Loading…
Reference in New Issue
Block a user