From 0b6c3067238d79e2f32dd1c10fa9f74344e74745 Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Tue, 4 May 2021 01:10:53 +0200 Subject: [PATCH] move mpv check --- strm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/strm b/strm index 1a26b9c..6f54713 100755 --- a/strm +++ b/strm @@ -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