move mpv check

This commit is contained in:
Denis Lehmann 2021-05-04 01:10:53 +02:00
parent 1b7be995a7
commit 0b6c306723

10
strm
View file

@ -39,11 +39,6 @@ function error {
exit 1
}
# Check if mpv is installed
if ! command -v mpv &>/dev/null; then
error "mpv was not found, please install it"
fi
# Set default values
config="$HOME/.config/strm/strm.config"
fullscreen=false
@ -158,6 +153,11 @@ if [ "$remote" != "" ]; then
exit
fi
# Check if mpv is installed
if ! command -v mpv &>/dev/null; then
error "mpv was not found, please install it"
fi
# Print usage if no queries were given
if [ "${#queries[@]}" == 0 ]; then
print_usage