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}/ ./"
|
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."
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user