Change from which to command -v

This commit is contained in:
joachimschmidt557 2019-07-05 09:24:47 +02:00
parent 0973bb4f7f
commit fd75f5e50e

View file

@ -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