From f28b5068c33292792e27f58df1af8f5955df782a Mon Sep 17 00:00:00 2001 From: Shahin Agha-Ghassem Date: Sun, 19 Mar 2023 18:48:56 +0100 Subject: [PATCH] Check for both fzf and mpv --- iptv | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/iptv b/iptv index 1492050..377f002 100755 --- a/iptv +++ b/iptv @@ -1,8 +1,6 @@ #!/bin/bash -if [ ! -x "$(command -v fzf)" ]; then - echo "fzf needs to be installed to use iptv." - exit 1 -fi +command -v fzf >/dev/null 2>&1 || { echo >&2 "fzf required but not installed"; exit 1; } +command -v mpv >/dev/null 2>&1 || { echo >&2 "mpv required but not installed"; exit 1; } m3u=$1