From 4cd68f17879652d9c42441af2cb310a6dd6f0878 Mon Sep 17 00:00:00 2001 From: Shahin Agha-Ghassem Date: Sun, 19 Mar 2023 12:12:06 +0100 Subject: [PATCH] Check for fzf dependency --- iptv | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iptv b/iptv index cae20d2..187d81a 100755 --- a/iptv +++ b/iptv @@ -1,4 +1,9 @@ #!/bin/bash +if [ ! -x "$(command -v fzf)" ]; then + echo "fzf needs to be installed to use iptv." + exit 1 +fi + m3u=$1 tmp_playlist="/tmp/iptvtemp"