Check for fzf dependency

This commit is contained in:
Shahin Agha-Ghassem 2023-03-19 12:12:06 +01:00
parent 8e851a5f8f
commit 4cd68f1787

5
iptv
View File

@ -1,4 +1,9 @@
#!/bin/bash #!/bin/bash
if [ ! -x "$(command -v fzf)" ]; then
echo "fzf needs to be installed to use iptv."
exit 1
fi
m3u=$1 m3u=$1
tmp_playlist="/tmp/iptvtemp" tmp_playlist="/tmp/iptvtemp"