Change from which to command -v
This commit is contained in:
parent
0973bb4f7f
commit
fd75f5e50e
1 changed files with 2 additions and 2 deletions
|
|
@ -12,13 +12,13 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check for youtube-dl in path
|
# Check for youtube-dl in path
|
||||||
if ! (which youtube-dl) ; then
|
if ! (command -v youtube-dl) ; then
|
||||||
echo "No youtube-dl found in path"
|
echo "No youtube-dl found in path"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for ffmpeg in path
|
# Check for ffmpeg in path
|
||||||
if ! (which ffmpeg) ; then
|
if ! (command -v ffmpeg) ; then
|
||||||
echo "No ffmpeg found in path"
|
echo "No ffmpeg found in path"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue